[root@localhost ~]# lsattr [選項] 文件或目錄名
[root@localhost ~]# touch attrtest
-----------e- attrtest
[root@localhost ~]# chattr +aij attrtest
[root@localhost ~]# lsattr attrtest
----ia---j-e- attrtest
[root@localhost ~]#lsattr -a
-----------e- ./.
------------- ./..
-----------e- ./.gconfd
-----------e- ./.bashrc
...
[root@localhost ~]#lsattr -d /back/log
-----a------e- /back/log
#查看/back/log目錄,其擁有a和e屬性
新聞熱點
疑難解答