I would like to list all users in Linux without showing systen-user. How can I make this only the username .
For example cut -d: -f1 /etc/passwd
, I can see all users + system users.
I would like to list all users in Linux without showing systen-user. How can I make this only the username .
For example cut -d: -f1 /etc/passwd
, I can see all users + system users.
This shows all users with uid less than 999:
EDIT:
With
cut
showing only human users:You can try this :
awk -F: '$6 ~ /\/home/ {print}' /etc/passwd