Record command parameters in Linux

Source: Internet
Author: User


Record the command parameter chgrp in Linux: Change the group to which the file belongs;
Chown: Change the file owner; www.2cto.com
Chown can only change the group to which the file belongs: for example, chown. bin filename -- change the group to which the file belongs to the bin group. Chmod: change file permissions numeric type change permissions: there are nine basic permissions for Linux Files, the three identities are owner, group, and others. Each of them has its own read, write, and execute permissions, of which: r: 4; w: 2; x: 1; the three permissions (r/w/x) of each identity (owner/group/others) must be accumulated. For example, when the user's permissions are readable and writable, that is to say, r + w + x = 4 + 2 + 0 = 6. In fact, we can understand that the rwx permission corresponds to one bit of the binary number, and this bit is 1 when there is a corresponding permission, otherwise, the value is 0, so that the obtained binary number in decimal format is his permission. In the preceding example, if the readable and writable data cannot be executed, the binary corresponding bit of rwx is 110, and the conversion to decimal is 6. This is much easier! Www.2cto.com: in the preceding table, u, g, and o indicate the permissions of three identities: user, group, and other! In addition, a represents all, that is, all identities! Then the read and write permissions can be written as r, w, x! For example: chmod g + rw filename reference article: laruence Linux private dish ~

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.