LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   List existing users (https://www.linuxquestions.org/questions/linux-newbie-8/list-existing-users-295769/)

anand_kt 02-28-2005 03:23 AM

List existing users
 
Is there a command to list all the existing users in the system.

( i know we can cat or vi the /etc/passwd file to know the same, but is there a command to list the same)

heema 02-28-2005 03:35 AM

type

Code:

users

bruse 02-28-2005 04:16 AM

same doubt i have two users but see this

[student@Simlab-node10 student]$ users
[student@Simlab-node10 student]$

shows nothing...

trevelluk 02-28-2005 07:18 AM

You could do the following (yes, it does read /etc/passwd directly, but it only displays the user names)

cat /etc/passwd | cut -d':' -f1


All times are GMT -5. The time now is 12:43 AM.