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

来源:互联网 发布:听四大名著的软件 编辑:程序博客网 时间:2024/05/22 03:07
通过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.
原创粉丝点击