If you have a need to find the user accounts present on a linux computer via te shell the below command should help;
cat /etc/passwd | grep "/home" | cut -d: -f1
This will list all users on the computer that have a home directory, you could also run cat /etc/passwd to get more inforation and all kinds of system accounts