Home >Operation and Maintenance >CentOS >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
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!