The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 09-29-2008 03:06 AM
HMC User account expired - What now? backslash AIX 0 05-31-2006 05:14 PM
user account chomca Post Here to Contact Site Administrators and Moderators 1 05-22-2006 12:41 PM
Locked out of Mandrake 9.1 user account alarmcall Linux 5 06-26-2004 01:38 PM
creatin user account damian UNIX for Dummies Questions & Answers 1 08-01-2001 10:53 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-23-2005
Deux Deux is offline
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
  #2 (permalink)  
Old 06-23-2005
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2004
Location: USA
Posts: 511
Code:
awk -F: '{ print $1 }' /etc/passwd
  #3 (permalink)  
Old 06-24-2005
jnsimpson02 jnsimpson02 is offline
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
  #4 (permalink)  
Old 06-24-2005
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,122
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.
  #5 (permalink)  
Old 06-25-2005
Deux Deux is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 5
OK thx evryone for your help.
  #6 (permalink)  
Old 06-25-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0