CentOS下如何查看一个文件的硬链接数?

操作系统 发布日期:2024/9/22 浏览次数:1

正在浏览:CentOS下如何查看一个文件的硬链接数?

用ls -l 可以看到有一个文档的硬链接数:

[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

用一下语句可以查看一个文件有哪些硬链接

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

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

/etc/passwd

/tmp/hl_passwd

但是注意由于硬链接是不能跨文件系统的,所以

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

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

Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。