Id Linux Command Option
Command: idUsage 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
# 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
No comments:
Post a Comment