How to show list of user on Xubuntu


After creating new user, you might also want to show list of user that exist on your system, showing list of user on xubuntu can also be done from the command line.

Although there are no built-in command for showing list of user on xubuntu, but there is a 'formula' (combination of commands) that we can use.

you can use this command for getting list of user on xubuntu
sudo awk -F':' '$2 ~ "\$" {print $1}' /etc/shadow
or this (without sudo)
awk -F'[/:]' '{if ($3 >= 1000 && $3 != 65534) print $1}' /etc/passwd


Share this

Related Posts

Previous
Next Post »