5.4 文件的隐藏属性
5.4.1 chattr 命令
参数
作用
# echo "for Test" > linuxprobe
# chattr +a linuxprobe
# rm -Rf linuxprobe
rm: cannot remove ‘linuxprobe’: Operation not permitted5.4.2 lsattr命令
最后更新于
# echo "for Test" > linuxprobe
# chattr +a linuxprobe
# rm -Rf linuxprobe
rm: cannot remove ‘linuxprobe’: Operation not permitted最后更新于
# lsattr linuxprobe
-----a---------- linuxprobe
# chattr -a linuxprobe
# rm -Rf linuxprobe