1. Total hard link number
$ ls -l test
-rwxrwxr-x 1 jason jason 253 Sep 14 12:58 test
$ ln test test-hd; ls -l test
-rwxrwxr-x 2 jason jason 253 Sep 14 12:58 test
$ ln -s test test-sf; ls -l test
-rwxrwxr-x 2 jason jason 253 Sep 14 12:58 test
2. acl (Access control list)
command: getfacl, setfacl
ex: getfacl test 作者: 爬行的龟 时间: 2015-11-06 17:21
1. Total hard link number
$ ls -l test #查看test文件,数字代表的是硬连接的数量,1代表只有文件本身
-rwxrwxr-x 1 jason jason 253 Sep 14 12:58 test
$ ln test test-hd; ls -l test #创建test文件的一个硬连接 test-hd ,再查看test,数字变成2了,
-rwxrwxr-x 2 jason jason 253 Sep 14 12:58 test
$ ln -s test test-sf; ls -l test #创建test的软连接 test-sf,再查看test,数字没变,说明跟软连接没关系
-rwxrwxr-x 2 jason jason 253 Sep 14 12:58 test