LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-28-2005, 03:23 AM   #1
anand_kt
Member
 
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, 03:35 AM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
type

Code:
users
 
Old 02-28-2005, 04:16 AM   #3
bruse
Member
 
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, 07:18 AM   #4
trevelluk
Member
 
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
 
  


Reply


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 01:03 AM
Setting up chroot with existing users qwerty Linux - Security 1 11-03-2005 04:29 PM
Kick existing connected users loadedmind Linux - Security 4 07-26-2005 07:55 AM
Install with existing users?? Okie2003 MEPIS 6 06-02-2005 04:39 PM
Moving existing users from one Linux server to... xmdms Linux - General 7 03-04-2004 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 AM.

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