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) |
type
Code:
users |
same doubt i have two users but see this
[student@Simlab-node10 student]$ users [student@Simlab-node10 student]$ shows nothing... |
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. |