6. 文件属性与权限操作
2495523 -rw-r--r-- 1 root root 65 12月 23 15:14 boot.log链接
软连接
硬链接
文件类型判断
修改文件权限命令 chmod
chmod增加权限
删除权限
修改用户组权限chown
Last updated
Was this helpful?
2495523 -rw-r--r-- 1 root root 65 12月 23 15:14 boot.logchmodLast updated
Was this helpful?
Was this helpful?
chmod u+x,g+w,o test.txt
# 赋予所有权限
chmod 777 test.txt
# 递归赋予权限
chmod -R 777 test.txtchmod u-x,g-w,o test.txtchown [user][:[group]] filname