GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Operating System  >  Shell Scripting

 Print  |  
Question:  UID and GID

Answer: What does UID and GID signify?


October 10, 2009 12:06:36 #3
 swetha_0505   Member Since: October 2009    Total Comments: 4 

RE: UID and GID
 

To find a user's UID or GID in Unix, use the id command.


To find a specific user's UID, at the Unix prompt, enter:

id -u username

Replace username with the appropriate user's username.


To find a user's GID, at the Unix prompt, enter:

id -g username


If you wish to find out all the groups a user belongs to, instead enter:

id -G username


If you wish to see the UID and all groups associated with a user, enter id
without any options, as follows:

id username


     

 

Back To Question