How to view user list in linux

王林
王林Original
2020-05-26 11:22:306095browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn