ID Introduction to Commands:
This command is used to view the user's account attribute information
1 . command format:
ID [option] USERNAME
2 . Command function:
used to view the attribute information for a user account that already exists on the system.
[[email protected] test1]# ID Tom
uid=666 (Tom) gid=666 (Tom) group =666 (Tom), (Donggen)
3. Command parameters:
- u View only the user's ID number uid
- G View only the user's group ID number GID
- G View only the user's additional group ID number GID
- N Viewing user information is displayed as a name and is not displayed with an ID number and is used with-u-g-G.
4. Command instance:
1, id-u Tom Display user Tom's UID number
[Email protected] test1]# id-u Tom
666
2, id-g Tom Display user Tom's GID number
[Email protected] test1]# id-g Tom
666
3, id-g Tom Display user Tom's GID number (additional group number)
[Email protected] test1]# id-g Tom
666 500 The default attachment group must have one base group and other attachment groups.
4. ID-G-N Tom displays user Tom's GID number (additional group number) and displays it by name
[Email protected] test1]# id-g-N Tom
Tom Donggen
5.
This article is from the "Learn Linux history" blog, please be sure to keep this source http://woyaoxuelinux.blog.51cto.com/5663865/1861065
Linux command: ID