就像在windows下創建兩個點以上的文件無法刪除一樣,linux下也可以有同樣的技巧:
[root@localhost ~]# touch test/.immutable [root@localhost ~]# chattr +i test/.immutable [root@localhost ~]# chattr +i test/ [root@localhost ~]# mkdir test/foobar mkdir: cannot create directory `test/foobar': Permission denied [root@localhost ~]# touch test/barfoo touch: cannot touch `test/barfoo': Permission denied