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

猜你喜欢

转载自www.cnblogs.com/360minitao/p/12750824.html