Unix/Linux Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

show all user account

UNIX for Dummies Questions & Answers


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 06-23-2005
Deux Deux is offline
Registered User
 
Join Date: Jun 2005
Last Activity: 25 June 2005, 8:32 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
show all user account

I have a question about show all create user account. What commend do that
thank`s for your help Unix or Linux Image
Sponsored Links
    #2  
Old Unix and Linux 06-23-2005
bhargav's Unix or Linux Image
bhargav bhargav is offline Forum Advisor  
Registered User
 
Join Date: Sep 2004
Last Activity: 26 July 2012, 3:38 PM EDT
Location: USA
Posts: 512
Thanks: 0
Thanked 2 Times in 2 Posts

Code:
awk -F: '{ print $1 }' /etc/passwd

Sponsored Links
    #3  
Old Unix and Linux 06-24-2005
jnsimpson02 jnsimpson02 is offline
Registered User
 
Join Date: Jun 2005
Last Activity: 28 June 2005, 1:30 PM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
re: show all user account

you can also just do this:

more /etc/passwd


...you will find a lot of dorks that like to do things the hard way. However, if you want basics, just stick with using 'more /etc/passwd'.


jnsimpson02
    #4  
Old Unix and Linux 06-24-2005
vgersh99's Unix or Linux Image
vgersh99 vgersh99 is offline Forum Advisor  
Forum Advisor
 
Join Date: Feb 2005
Last Activity: 5 May 2015, 12:00 PM EDT
Location: Foxborough, MA
Posts: 7,814
Thanks: 173
Thanked 648 Times in 606 Posts
Quote:
Originally Posted by jnsimpson02
you can also just do this:

more /etc/passwd


...you will find a lot of dorks that like to do things the hard way. However, if you want basics, just stick with using 'more /etc/passwd'.


jnsimpson02
pls read the rules of these forums after joining AND prior to posting.
(1) No flames, shouting (all caps), sarcasm, bullying, profanity or arrogant posts.
Sponsored Links
    #5  
Old Unix and Linux 06-25-2005
Deux Deux is offline
Registered User
 
Join Date: Jun 2005
Last Activity: 25 June 2005, 8:32 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
OK thx evryone Unix or Linux Image for your help.
Sponsored Links
    #6  
Old Unix and Linux 06-25-2005
zazzybob's Unix or Linux Image
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
 
Join Date: Dec 2003
Last Activity: 13 May 2013, 9:02 AM EDT
Location: Melbourne, Australia
Posts: 2,185
Thanks: 3
Thanked 24 Times in 23 Posts
Also, to quote jnsimpson
Quote:
...you will find a lot of dorks that like to do things the hard way. However, if you want basics, just stick with using 'more /etc/passwd'.
The "hard" way is the correct way.

awk -F: '{ print $1 }' /etc/passwd shows, as the Original Poster requested, all user accounts.

more /etc/passwd just shows the entire passwd file, a superset of the required information.

Just a note too... with NIS
ypcat passwd | awk -F: '{print $1}'

Cheers
ZB
Sponsored Links
    #7  
Old Unix and Linux 06-26-2005
ErNci ErNci is offline
Registered User
 
Join Date: Jun 2005
Last Activity: 29 January 2006, 10:03 AM EST
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
cat /etc/passwd | awk -F: '{ print $1 }'

Me-Owwwww
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Possible to show in which directory a user can write? FranzB UNIX for Advanced & Expert Users 0 07-14-2009 10:18 AM
Difference between : Locked User Account & Disabled User Accounts in Linux ? avklinux UNIX for Dummies Questions & Answers 3 02-06-2009 08:01 PM
How do you set up an FTP user account? XZOR UNIX for Dummies Questions & Answers 3 09-29-2008 03:06 AM
ps results - to show user's ps only rdns UNIX for Dummies Questions & Answers 13 10-15-2007 12:36 PM
user account chomca Post Here to Contact Site Administrators and Moderators 1 05-22-2006 12:41 PM



All times are GMT -4. The time now is 01:18 PM.