How to add permissions to files in linux

王林
Release: 2019-12-26 10:45:06
Original
18763 people have browsed it

How to add permissions to files in linux

The command is as follows:

chmod -R 777 文件名
Copy after login

Parameter -R means recursion, 777 means opening all permissions.

For example:

chmod 777 test.sh
Copy after login

Related learning video tutorial sharing: linux video tutorial

Supplement:

If you can add it to everyone Execution permission:

chmod a+x 文件名
Copy after login

If you add executable permission to the file owner:

chmod u+x 文件名
Copy after login

If you add executable permission to the group:

chmod g+x 文件名
Copy after login

If you give it to someone outside the group Add executable permissions:

chmod o+x 文件名
Copy after login

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of How to add permissions to files in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!