GNU/Linux Command – ID

id – Print real & effective UIDs and GIDs
 
Summary :
 
It prints the user’s info like user id, group id, user name, etc.,
 
Example:
$ id -- Print UID, GID, Groups.  $ id -r -- Print only the real user ID.  $ id -u -- print only the effective user ID  $ id -nu -- Print only user name.  $ id -g -- print only the effective group ID.  $ id -ng -- Print only group name.  $ id -G -- Print all group IDs  $ id -nG -- Print all groups name.  $ id user1 -- Print info abt user1.
NOTE:-
Real UID is the UID of the user, who created. Effective UID is used to evaluate privileges of the process to perform a particular action.
 
Read : man id

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: