How does Linux view all the user and group information?

Source: Internet
Author: User

  1. cat/etc/passwd
  2. CAT/ETC/PASSWD View all user information, details such as

  3. "Step two" Cat/etc/passwd|grep user name

    The Cat/etc/passwd|grep user name that is used to find a user, such as

  4. "Step three" Cat/etc/group

    Cat/etc/group View all group information, such as

  5. 4

    "Step four" cat/etc/group|grep group name

    The CAT/ETC/GROUP|GREP group name, which is used to find a user group, such as

  6. 5

    "Step Five" user and group common commands

    Groups viewing the members of the currently logged on user group

    Groups Test View the group where the test user is located, and the members in the group

    WHOAMI View the currently logged in user name

How does Linux view all the user and group information?

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.