Home  >  Article  >  Operation and Maintenance  >  How to check the users in Linux system

How to check the users in Linux system

青灯夜游
青灯夜游Original
2022-01-11 17:46:5320660browse

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.

How to check the users in Linux system

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.

How to check the users in Linux system

Then enter the command line cat /etc/passwd and just press the Enter key

How to check the users in Linux system

Then a lot of information will be displayed here, all users are here

How to check the users in Linux system

Then check all the groups, the same way, type the command line cat /etc/groupThen press Enter

How to check the users in Linux system

Then all the groups in the system will be displayed, just like the user, the last one is the one I just created Oh

How to check the users in Linux system

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

How to check the users in Linux system

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!

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