id: Print user and group id?s

Print real and effective user id (uid) and group id (gid), prints
identity information about the given user, or if no user is specified the current process.
SYNTAX
id [options]... [username]

By default, it prints the real user id, real group id, effective
user id if different from the real user id, effective group id if
different from the real group id, and supplemental group ids.

Each of these numeric values is preceded by an identifying string and
followed by the corresponding user or group name in parentheses.

OPTIONS
The options cause `id? to print only part of the above information.

-g
--group
Print only the group id.

-G
--groups
Print only the supplementary groups.

-n
--name
Print the user or group name instead of the ID number.
Requires -u, -g, or -G

-r
--real
Print the real, instead of effective, user or group id.
Requires -u, -g, or -G

-u
--user
Print only the user id.
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (6 + 3) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 01.04.2009
Views: 1647
Item date: 12.04.2009
Views: 1745
Item date: 19.07.2009
Views: 1231
Item date: 24.08.2009
Views: 438
Item date: 12.04.2009
Views: 439
Item date: 17.01.2010
Views: 591
Item date: 24.08.2009
Views: 1657
Item date: 12.04.2009
Views: 1082
Item date: 14.07.2011
Views: 4820
Item date: 17.06.2009
Views: 2167