How to list all the users/groups in linux?


nagaraju@nagaraju:~$ cut -d: -f1 /etc/passwd

root
daemon
bin
sys
sync
games
man


nagaraju@nagaraju:~$ cut -d: -f1 /etc/group

root
daemon
bin
sys
adm
tty
disk
lp
mail
news
uucp
man
pro

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *