Home > Article > Operation and Maintenance > How to view user list in linux
View the list of all users
cat /etc/passwd
View user groups
cat /etc/group
View the group members of the currently logged in user
groups
View The group where the glethttp user belongs, and the members in the group
groups gliethttp
View the current login user name
whoami
Recommended tutorial: linux tutorial
The above is the detailed content of How to view user list in linux. For more information, please follow other related articles on the PHP Chinese website!