chmod
更改文件模式位。
用法:
chmod [选项] 模式 文件...
示例:
-
chmod +x script.sh
给 script.sh 添加执行权限。
-
chmod 755 myfile.txt
设置 myfile.txt 的权限为 rwxr-xr-x。
分类: 权限
更改文件模式位。
用法:
chmod [选项] 模式 文件...
chmod +x script.sh
给 script.sh 添加执行权限。
chmod 755 myfile.txt
设置 myfile.txt 的权限为 rwxr-xr-x。
分类: 权限