Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 112010
 

Display current login user information

Answer:

To check your Linux username, use whoami

$ whoami

john

To see your User ID (UID), Group ID (GID) and who groups you belong to, use the command id

$ id

uid=1000(john) gid=100(users) groups=33(www-data),100(users)

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>