Skip to content
Home » How to List users in Linux

How to List users in Linux

To get the list of users in linux then use the below commands. We can get the list of users in linux using cut or awk command.

Using cut command:

cut -d: -f1 /etc/passwd

The other way to get the list of users is by using awk command.

awk -F: '{ print $1}' /etc/passwd

Also Read:

Command to unzip a .tar.gz file