Sunday, November 3, 2013

Id Linux Command Option

Id Linux Command Option

Command: id

Usage of ID: print real and effective user and group IDs

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

Example Of ID Command:

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

Id Linux Command Option

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers