Home > Operation and Maintenance > CentOS > How to view users in centos

How to view users in centos

Release: 2020-03-24 17:57:15
Original
9517 people have browsed it

How to view users in centos

centos View user:

Recommended tutorial: centos usage tutorial

1 , User list file: /etc/passwd/

2. User group list file: /etc/group

3. Check which users are in the system:

cut - d : -f 1 /etc/passwd

4. Check the users who can log in to the system:

cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1

How to view users in centos

5. View user operation: w command (requires root permission)

6. View a certain user: w Username

7. Check the logged-in user: who

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of How to view users in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template