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其他用户可执行权限

posted @ 2020-04-22 11:25  迷你淘  阅读(2943)  评论(1)    收藏  举报