chmod +x 和 chmod u+x的区别

通过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.

猜你喜欢

转载自www.cnblogs.com/yifanSJ/p/9171556.html