chmod +x 和 chmod u+x的区别


常用:

 chmod a+x tomcat

 

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.

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM