M. Max M. Max - 1 month ago 4x
Linux Question

List all Linux User without Systen User

I would like to list all User in Linux without to show systen-user.
How i can make this please only the Username .

For example cut -d: -f1 /etc/passwd i can see all user + system User

Thanks for help


This shows all users with uid less than 999:

awk  -F':' '$3>999 {print $1 " uid: " $3}' /etc/passwd | column -t | grep -v nobody


With cut showing only human users:

cut -d: -f1,3 /etc/passwd | egrep ':[0-9]{4}$' | cut -d: -f1