码迷,mamicode.com
首页 > 系统相关 > 详细

Linux常用命令-权限管理命令-权限管理命令chmod

时间:2015-06-06 23:35:42      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:

命令名称:chmod
命令英文原意:change the permissions mode of a file
命令所在路径:/bin/chmod
语法:chmod 【{ugoa}{+-=}{rwx}】 【文件或目录】
【mode = 777】 【文件或目录】
-R 递归修改
功能描述:改变文件或目录的权限

权限表示的数字
r 4
w 2
x 1
rwxrw-r—
7 6 4
技术分享

范例
chmod g+w tstfile
赋予tstfile文件写的权限
chmod -R 7777 testfile
修改目录testfile 及其 所目录下的文件为所有用户有全部权限

Linux常用命令-权限管理命令-权限管理命令chmod

标签:

原文地址:http://blog.csdn.net/song5749/article/details/46392169

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!