BIP KB Tag: Full User List

How To Extract A User List From Your Linux System

Here is a simple way to extract the User Name and full name for all the users on your Linux system. Both methods divide the /etc/passwd file into columns and print column 1 and 5 where ":" is used as a common delimiter. Column 1 contains the username and column 5 contains the full name. Using awk: BEGIN { FS=":" } { print $1 "\t" $5 } save this as extractnames.awk . Now execute awk and include this file: $ awk ...
By kevin, June 26, 2015