Linux | chmod +x 和 chmod u+x的区别

选项的含义:

u 代表用户.
g 代表用户组.
o 代表其他.
a 代表所有.

这意味着chmod u+x filePath 只授予这个文件的**所属者(也就是文件的创建者)**执行的权限 。

而 chmod +x filePath 和 chmod a+x filePath 是一样的 效果,针对所有。

猜你喜欢

转载自blog.csdn.net/fragrant_no1/article/details/87785766