Monday 29 December 2008

list of usernames in a unix system

Print a sorted list of the login names of all users:

awk -F: '{ print $1 }' /etc/passwd | sort

No comments:

Post a Comment

Tweets by @sriramperumalla