Method: 1. Use the "Alt F2" shortcut key to open the command input box, enter the "gnome-terminal" command, and press the Enter key to open the terminal; 2. Enter the "cat /etc/passwd" command, Press Enter to execute the command; 3. You can view the information of all users in the output results.
The operating environment of this tutorial: Ubuntu 16.04 system, Dell G3 computer.
Linux View all user and group information
First press the Alt F2 shortcut key to open the command input box in the ubuntu system. Enter the "gnome-terminal" command and press Enter to open the terminal.
Then enter the command line cat /etc/passwd
and just press the Enter key
Then a lot of information will be displayed here, all users are here
Then check all the groups, the same way, type the command line cat /etc/group
Then press Enter
Then all the groups in the system will be displayed, just like the user, the last one is the one I just created Oh
Use the command linegroups username
, you can view the group to which the current user belongs and the information of other members in the group
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to check the users in Linux system. For more information, please follow other related articles on the PHP Chinese website!