权限管理命令:chmod
命令名称:chmod
命令英文原因:chang the permissions mode of a file
命令所在路径:/bin/chmod
执行权限:所有用户
语法:
chmod [{ugoa} {+-=} {rwx}] [文件或目录]
chmod [mod = 421] [文件或目录]
-R ———》递归修改
权限的数字表示:
r ---- 4
w ---- 2
x ---- 1
范例:
$ chmod g+w textfile赋予文件textfile所属组写权限
$ chmod -R 777 testdir修改目录textdir及其目录下文件为所有用户具有全部权限
补充:
最后,感谢您的阅读!!!