MoonPoint Support Logo

 




Advanced Search
February
Sun Mon Tue Wed Thu Fri Sat
19
2026
Months
Feb
Apr May Jun
Jul Aug Sep
Oct Nov Dec


Thu, Feb 19, 2026 9:43 pm

Listing all accounts on an Ubuntu Linux system

If you need to list all of the accounts on an Ubuntu Linux system, there are many commands that you can use.

  1. cat /etc/passwd
  2. grep -oE '^[^:]+' /etc/passwd - for just the account names
  3. cut -d: -f1 /etc/passwd - for just the account names
  4. awk -F: '{print $1}' /etc/passwd - for just the account names
  5. lslogins
  6. compgen -u - for just the accunt names
  7. getent passwd

[ More Info ]

[/os/unix/linux/ubuntu] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo