1、改文件的权限

我想修改文件a.txt的权限为755

$ chmod 755 a.txt

2、只改变文件夹本身权限,不改动子文件

$ chmod 600 myfolder

3、改变文件夹及子目录下所有文件(夹)权限

$ chmod -R 600 myfolder