The/etc/group file is a configuration file for the user group.
The/etc/passwd file is the user's configuration file.
These two configuration files can be viewed and modified using commands such as cat, more, less, head, tail, and vim.
Description
/ETC/PASSWD file Content format: Registration name: Password: User id: Group ID: User name: Home directory: Command interpreter. Take the root user as an example. Root is the user registration name, x means the password is saved in/etc/shadow, the user ID is 0, the user group ID is 0, the user name is Root,home directory for/root, the interpreter/bin/bash.
/etc/group file Content format: Group name: Password Save location: Group ID: Group member. Take the root user group as an example, the group name is root, the password is saved in the/etc/shadow,root group GID is 0, the user under the group is the root user.
How do I see all the user and group information under Linux?