Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-28-2005, 04:23 AM   #1
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Rep: Reputation: 15
List existing users

Is there a command to list all the existing users in the system.

( i know we can cat or vi the /etc/passwd file to know the same, but is there a command to list the same)
Old 02-28-2005, 04:35 AM   #2
Senior Member
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46

Old 02-28-2005, 05:16 AM   #3
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
same doubt i have two users but see this

[student@Simlab-node10 student]$ users
[student@Simlab-node10 student]$

shows nothing...
Old 02-28-2005, 08:18 AM   #4
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
You could do the following (yes, it does read /etc/passwd directly, but it only displays the user names)

cat /etc/passwd | cut -d':' -f1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list existing users? stefaandk Linux - Newbie 11 04-03-2006 02:03 AM
Setting up chroot with existing users qwerty Linux - Security 1 11-03-2005 05:29 PM
Kick existing connected users loadedmind Linux - Security 4 07-26-2005 08:55 AM
Install with existing users?? Okie2003 MEPIS 6 06-02-2005 05:39 PM
Moving existing users from one Linux server to... xmdms Linux - General 7 03-04-2004 06:41 PM

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration