List all users, command
How can I list all the users name(shell)....
|
All of the users are listed in the /etc/passwd file (you may need to be root to read it). It's also got a whole load of other information as well as the user names. To just get the user names, try something like:
cat /etc/passwd | cut -d":" -f1 |
Hi,
If you mean by (shell) from the command line: awk -F":" '{ print $1 }' /etc/passwd Hope this helps. |
Thanks guys.
|
Quote:
|
Thats right i was able to list the all the users without root power.
|
Fair enough, my mistake. Need sleep.
|
All times are GMT -5. The time now is 09:16 PM. |