chmod a+x和chmod u+x区别

Posted 360minitao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了chmod a+x和chmod u+x区别相关的知识,希望对你有一定的参考价值。

u 表示用户
g 表示用户组
o 表示其它
a 表示所有

chmod a+x a.txt 等价于 chmod +x a.txt
给所有用户给予a.txt文件可执行权限
chmod u+x a.txt
a.txt文件的所有用户可执行权限
chmod g+x a.txt
a.txt用户组可执行权限
chmod o+x a.txt
a.txt其他用户可执行权限

以上是关于chmod a+x和chmod u+x区别的主要内容,如果未能解决你的问题,请参考以下文章

Linux命令:修改文件权限命令chmodchgrpchown的区别

chmod命令详解

chmod命令

chmod

chmod

chmod 和 chown的作用与区别