10000 Update chmod.md · unlinux/linux-command@791b707 · GitHub
[go: up one dir, main page]

Skip to content

Commit 791b707

Browse files
authored
Update chmod.md
1 parent 4708771 commit 791b707

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

command/chmod.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,22 @@ ll -d f1 查看目录f1的属性
8888
```
8989

9090

91+
`/home/wwwroot/`里的所有文件和文件夹设置为`755`权限
92+
93+
(1)直接指定路径修改
94+
95+
```bash
96+
chmod -R 755 /home/wwwroot/*
97+
```
98+
99+
(2)手动进入该目录修改权限(并显示详细过程)
100+
101+
102+
```bash
103+
cd /home/wwwroot
104+
chmod -Rv 755 * #注意:“*”表示通配符,指的是所有文件和文件
105+
sudo chmod o+rw /shared #设置文件夹权限以保证其余用户可以访问它。
106+
```
107+
108+
91109
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)
0