How To List Users in CentOS 7?


To get a simple list of usernames.

Enter the command given below:

cut -d: -f1 /etc/passwd

This command gives us a list of users assigned to this CentOS server including system users like:

 

root

daemon

operator

sshd

systuser

cpanel

clamav

dovecot

 



Article ID: 121
Created On: Tue, Jan 31, 2023 at 3:01 PM
Last Updated On: Tue, Jan 31, 2023 at 3:01 PM
Authored by: Saeed Nobakht [[email protected]]

Online URL: https://www.navel.ir/article/how-to-list-users-in-centos-7-121.html