Manage Users in Linux
List Users and Groups cat /etc/passwd The file stores all users in the system in :-seperated column format. It has 7 fields starting from <username>, whether password encrypted, user id <uid>, group id <gid>, comment, home directory and shell.
cat /etc/group The file contains group name, password, groud id <gid>, and user names in this group.
id <username> Shows the user id, group id and groups the person is in.