LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Display Linux users (https://www.linuxquestions.org/questions/linux-newbie-8/display-linux-users-487017/)

boybawang 09-26-2006 02:14 AM

Display Linux users
 
Hi everyone,

I just want to ask how I can display a list of all the users on my machine? Not just the currently logged on users but all of them.

Thank you very much for your replies.

Tinkster 09-26-2006 02:39 AM

Hi, welcome to LQ!

This gets asked quite often, you could have used the search :}

One possible way:

awk -F: ' $3 > XXX {print $1}' /etc/passwd


XXX depends on your distro; in Slack, use 100 (the System/daemon users are
all lower than that). Debian: use 1000. Some others: maybe 500 :}


Cheers,
Tink

boybawang 09-26-2006 02:53 AM

Thanks!
 
Wow, thanks! I've been googleing it all over and I just couldnt find the right keywords for it. So when I got to LQ, i'm just really desperate. hehehehe
Thank you very much. I think I'll be quite a frequent visitor here :D

Tinkster 09-26-2006 03:20 AM

Quote:

Originally Posted by boybawang
Wow, thanks! I've been googleing it all over and I just couldnt find the right keywords for it. So when I got to LQ, i'm just really desperate. hehehehe
Thank you very much. I think I'll be quite a frequent visitor here :D

You're welcome ...


Cheers,
Tink


All times are GMT -5. The time now is 09:20 AM.