Detailed usage of the CHMOD command

Source: Internet
Author: User

Function Description:

Change file or directory permissions

U: user, the owner of a file or directory.

G: group, that is, the group to which the file or directory belongs.

O: other. All Users except the file or directory owner or group belong to this range.

A: All, that is, all users, including owners, groups, and other users.

The permission code is listed below:

R: Read Permission, number code: "4 ".

W: Write Permission. The number is "2 ".

X: execute or switch the permission. The number is "1 ".

-: You do not have any permission. The digit code is "0 ".

Instance:

1)

Chmod A + x sort

2)

Chmod 777 sort

The first "7" is u

The second "7" is g

The third "7" is o

Detailed usage of the CHMOD command

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.