ID Command--linux command to apply a large dictionary 729 commands interpretation

Source: Internet
Author: User

The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"

tell 729 commands, 1935 examples

Learn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be found

Strive to publish content every day


ID Command

use the ID command to display the UID of the user and the GID of the group to which the user belongs .

Command syntax:

ID [ options ] [ user name ]

The meanings of the options in the command are as follows is shown.

table ID command option meaning

Options

Meaning

-G

that shows the primary group to which the user belongs. Gid

-G

Displays the group that the user belongs to. GID(both primary and secondary groups are listed)

-U

Show Users Uid

Example : Queries the UID of user ab, the GID of the primary group, and the attribution group.

[[Email protected]~]# ID AB

uid=515 (AB) gid=517 (AB) Group =517 (AB), 518 (OU)

The UID of user ab is 515, the main group is AB, the GID of the main group is 517, the user belongs to ab and ou group

Example : Displays the GID of the primary group to which user ab belongs.

[[Email protected]~]# id-g AB

517

The GID that shows the main group that user ab belongs to is 517

Example : Displays the GID of the group to which user ab belongs.

[[Email protected]~]# id-g AB

517 518

The GID that shows user ab belongs to the group is 517 and 518

Example : Displays the UID of user ab.

[[Email protected]~]# id-u AB

515

Display user ab 's UID is 515


This article is from the "airfish2000" blog, make sure to keep this source http://airfish2000.blog.51cto.com/10829608/1874650

ID Command--linux command to apply a large dictionary 729 commands interpretation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.