LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-18-2010, 12:00 PM   #16
toothpick
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
Alternative.....


How about just "less /etc/passwd"?
 
Old 10-13-2010, 10:14 AM   #17
anthalamus
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
if someone's looking at this thread for an answer to a good way to reverse look up user per UID, I like:
Code:
getent passwd | awk -F: '$3=='$SOME_USER_ID'{print $1}'
more reliable than using /etc/passwd, especially when user dirs are mounted from elsewhere
hope it helps someone
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Command to run another command against a list of files psweetma Linux - General 3 11-09-2005 05:29 PM
command to list all users of the system?? simi_544 Linux - Networking 9 09-29-2005 03:00 AM
List all users, command amer_58 Linux - Newbie 6 03-25-2005 06:07 AM
How to get list of system users from command line? tictocdoc Linux - General 3 03-12-2004 03:06 PM


All times are GMT -5. The time now is 04:31 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration