通过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.
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体分享计划 ,欢迎热爱写作的你一起参与!