Common Linux commands-permission management commands chmod

Source: Internet
Author: User

Common Linux commands-permission management commands chmod

Command name: chmod
Command: change the permissions mode of a file
Command path:/bin/chmod
Syntax: chmod [{ugoa} {+-=}{ rwx}] [file or directory]
[Mode = 777] [file or directory]
-R recursive Modification
Function Description: Change the permissions of a file or directory.

Number of Permissions
R 4
W 2
X 1
Rwxrw-r-
7 6 4

Example
Chmod g + w tstfile
Grant write permission to tstfile
Chmod-R 7777 testfile
Modify the testfile directory and the files in the directory to grant all permissions to all users.

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.