Linux系统chmod,chown和chgrp的区别

2025-04-08 16:38:35
推荐回答(1个)
回答1:

1、chmod修改文件的读写执行权限等属性,例如
chmod 755 a.sh
chmod a+x a.sh
2、chown修改所属用户和组,例如
chown user01:www index.html
chown -R oracle:oinstall /u02
3、chgrp修改分组属性
chgrp root a.sh