What user accounts have I created in Linux?

By | November 6, 2008

To quickly find out what user accounts you have created in your Linux system, use

cut -d: -f1 /etc/passwd | sort

This will output the list of usernames from /etc/passwd in a nice and readable way.

Leave a Reply

Your email address will not be published. Required fields are marked *