1)普通用法,对某文件添加所有权限 $ chmod 777 file 2)对某脚本添加可执行权限 $ chmod +x file 3)对当前目录下的所有文件,及遍历子目录添加所有权限 $ chmod -R 777 *