方法如下:
用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
用一下語(yǔ)句可以查看一個(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
版權(quán)聲明:文章圖片資源來源于網(wǎng)絡(luò),如有侵權(quán),請(qǐng)留言刪除!!!
評(píng)論