欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

CentOS下如何查看一個(gè)文件的硬鏈接數(shù)?

  發(fā)布時(shí)間:2016-12-19 15:41:51   作者:佚名   我要評(píng)論
一些朋友不知道CentOS下如何查看一個(gè)文件的硬鏈接數(shù)?今天小編就為大家?guī)鞢entOS下查看一個(gè)文件的硬鏈接數(shù)的方法;希望對(duì)大家會(huì)有幫助;有需要的朋友一起去看看吧

用ls -l 可以看到有一個(gè)文檔的硬鏈接數(shù):

[root@localhost tmp]# ls -li

total 104

229415 drwxr-xr-x  2 root root 4096 Dec 11 21:15 etc

 39757 -rw-r--r--  2 root root 1602 Oct 30 14:56 hl_passwd

用一下語句可以查看一個(gè)文件有哪些硬鏈接

[root@localhost tmp]# find / -inum 39757

find: /proc/6266/task/6266/fd/4: No such file or directory

/etc/passwd

/tmp/hl_passwd

但是注意由于硬鏈接是不能跨文件系統(tǒng)的,所以

 Add the `-xdev' option if you are starting the

search at a directory that has other filesystems mounted on it,

相關(guān)文章

最新評(píng)論