Update chmod.md

This commit is contained in:
小弟调调™ 2018-01-23 12:14:20 +08:00 committed by GitHub
parent 4708771a32
commit 791b707ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -88,4 +88,22 @@ ll -d f1 查看目录f1的属性
```
将`/home/wwwroot/`里的所有文件和文件夹设置为`755`权限
(1)直接指定路径修改
```bash
chmod -R 755 /home/wwwroot/*
```
(2)手动进入该目录修改权限(并显示详细过程)
```bash
cd /home/wwwroot
chmod -Rv 755 * #注意:“*”表示通配符,指的是所有文件和文件
sudo chmod o+rw /shared #设置文件夹权限以保证其余用户可以访问它
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->