Tuesday, 27 October 2015

How will you print the login names of all users on a system?

/etc/shadow file has all the users listed.
awk –F ‘:’ ‘{print $1} /etc/shadow’|uniq -u

No comments:

Post a Comment