Languages
[Edit]
EN

Bash - how to list system users in Linux?

11 points
Created by:
Root-ssh
150590

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

#...

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Bash

Bash - list system users in Linux
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join