手机
当前位置:查字典教程网 >电脑 >服务器_操作系统教程 >CentOS下如何查看一个文件的硬链接数?
CentOS下如何查看一个文件的硬链接数?
摘要:用ls-l可以看到有一个文档的硬链接数:[root@localhosttmp]#ls-litotal104229415drwxr-xr-x2...

用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,

【CentOS下如何查看一个文件的硬链接数?】相关文章:

Linux系统中ls命令的常见用法整理

Centos中如何临时禁用用户?

在Linux下创建写保护的文件的教程

Linux中stat命令显示文件的基本使用教程

在CentOS系统中安装Websvn的教程

Linux find命名快速查找中毒文件的方法

在Linux上如何使用fuser工具来查询文件的用户

CentOS下更改文件文件夹所属用户组(chgrp)的方法

docker pull 下来的镜像文件存放的位置

Centos6下Varnish启动失败的解决办法

精品推荐
分类导航