Quantcast
Channel: Geeks Hangout - Software
Viewing all articles
Browse latest Browse all 21

Getting a user of Linux users via the shell

$
0
0

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


Viewing all articles
Browse latest Browse all 21

Trending Articles