What is the command to list all users in Linux?

What is the command to list all users in Linux?
Answer
In order to list users on Linux, you have to execute
the “cat” command on the “/etc/passwd” file. When executing this command, you will be presented with the list of users currently available on your system. Alternatively, you can use the “less” or the “more” command in order to navigate within the username list.
 

Tìm kiếm

Back
Top