Perlist at blogspot
2012/10/12
List all users
List all users:
awk -F: '{ print $1 }' /etc/passwd
List all members of a group:
awk -F: '/^groupname/ {print $4;}' /etc/group
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment