command: id
usage: print real and effective user and group IDs

syntax: $ id [option]... [username]

example:

1. To display the rootuser uid, gid, groups and contexts

    # id

2. To print real and current group IDs

    # id -a

3. To print only the security context of the current user

    # id -Z

4. To print only the effective group ID

    # id -g

5. To print all group IDs

    # id -G

6. To print only the effective user ID

    # id -u

7. To print help info of this command

    # id -h

8. To print a name instead of a number, for -ugG

    # id -n -G


regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to