If you have a need to find the user accounts present on a Linux computer via the shell the below command should help.

This will list all users on the computer that have a home directory, you could also run  the below to get more information and all kinds of system accounts.