您的位置:首页 > 运维架构 > Linux

linux中 chmod +x 和 chmod u+x的区别

2016-03-01 17:56 369 查看
通过man查询可知:

u 代表用户.

g 代表用户组.

o 代表其他.

a 代表所有.

这意味着chmod u+x somefile 只授予这个文件的所属者执行的权限

而 chmod +x somefile 和 chmod a+x somefile 是一样的

Just doing +x will apply it to all flags: [u]ser, [g]roup, [o]thers.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Linux