Languages
[Edit]
EN

Bash - how to list system users in Linux?

11 points
Created by:
Root-ssh
68600

Using Bash it is possible to list users in Linux in following way.

1. /etc/passwd file example

$ cat /etc/passwd | cut -d : -f 1

Output:

root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy

#...

 

Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join