Lot of HOWTOs

May 29th, 2008

Get Username From UID in Unix

Other, by suvi.

Finding out the username by user id (uid) in Unix is not as common a task as determining the uid by a username, but if you need to do it – I’ll show you how.

How to find the username using user id (uid)

Simply use the getent command. Most common use for it is to query the passwd source for a username, like this:

Read more at UNIX Tutorial

Back Top

Leave a Reply

Your email address will not be published. Required fields are marked *


Featuring YD Feedwordpress Content Filter Plugin