The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do you set up an FTP user account? XZOR UNIX for Dummies Questions & Answers 3 2 Weeks Ago 12:06 AM
HMC User account expired - What now? backslash AIX 0 05-31-2006 02:14 PM
user account chomca Post Here to Contact Site Administrators and Moderators 1 05-22-2006 09:41 AM
Locked out of Mandrake 9.1 user account alarmcall Linux 5 06-26-2004 10:38 AM
creatin user account damian UNIX for Dummies Questions & Answers 1 08-01-2001 07:53 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2005
Registered User
 

Join Date: Jun 2005
Posts: 5
show all user account

I have a question about show all create user account. What commend do that
thank`s for your help
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-23-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
Code:
awk -F: '{ print $1 }' /etc/passwd
Reply With Quote
  #3 (permalink)  
Old 06-24-2005
Registered User
 

Join Date: Jun 2005
Posts: 5
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
Reply With Quote
  #4 (permalink)  
Old 06-24-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,002
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.
Reply With Quote
  #5 (permalink)  
Old 06-25-2005
Registered User
 

Join Date: Jun 2005
Posts: 5
OK thx evryone for your help.
Reply With Quote
  #6 (permalink)  
Old 06-25-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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
Reply With Quote
  #7 (permalink)  
Old 06-26-2005
Registered User
 

Join Date: Jun 2005
Posts: 24
cat /etc/passwd | awk -F: '{ print $1 }'

Me-Owwwww
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0