

Linux常用命令-45:chmod
source link: https://xugaoxiang.com/2022/06/13/linux-cmds-45-chmod/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

chmod
命令用来改变文件或目录的权限,只有文件的属主和超级用户才能执行这个命令。有两种设置模式,一种是采用权限字母和操作符;另一种是采用数字。
语法格式: chmod [参数] [文件]
常用参数:

# 给test.sh脚本加个执行的权限,a为针对所有用户。r为读,w为写,x为执行
chmod a+x test.sh
# 给文件夹test递归设置权限755,读权限为4,写为2,执行为1,加起来是7
chmod -R 755 test
Recommend
-
56
根据网上的Linux常用命令做出的总结文档;大部分命令总结了参数和示例;所有命令都有简介的使用说明;文档中有少量知识点穿插;
-
11
My idea for recovering from runaway chmod/chown calls Web hosting support is an interesting business. You exist because the customers need help doing things on their machines. In my case, my job existed to help people get things...
-
6
origin url Permissions masking with umask, chmod, 777 octal permissions Ian! D. Allen – [email protected] –
-
7
os.Chmod 时到底用 777 还是 0777? 发表于 2021-06-20 分类于
-
6
Llinux文件目录权限及chmod命令简析Jager · 4月22日 · 2014年chmod ·
-
17
`COPY --chmod` reduced the size of my container image by 35% Mar 25, 2022 containers Earlier thi...
-
53
Set permission of file equivalent to chmod 400 on Windows. · GitHub Set permission of file equivalent to chmod 400 on Windows. ...
-
10
chmod chmod 777意味着什么 您正在尝试修复Web服务器的权限问题,并在Internet上找到了答案,说您需要递归修改Web目录的权限 ...
-
14
如果你不了解权限,那么永远都不要chmod 777。 在Linux中,对文件的访问由操作系统使用文件权限、属性和所有权进行控制。 每个文件由特定用户和组拥有,并为三种不同类别的用户分配权限访问权限:
-
3
...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK