How To Check User List In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. To view a list of all user accounts on a Linux system, you can use the ‘/etc/passwd’ file. This file contains all the user accounts on the system including system accounts and regular users.
2. You can view the file using the ‘cat’ command, for example:
$ cat /etc/passwd
3. Another way to list all user accounts from the command line is to use the ‘getent’ command. This command queries the system databases and displays all the user accounts. For example:
$ getent passwd