欢迎来到山村网

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

2019-03-09 11:09:38浏览:282 来源:山村网   
核心摘要:  用ls -l 可以看到有一个文档的硬链接数:  [root@localhost tmp]# ls -li  total 104  229415 drwxr-xr-x 2 root root

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

(责任编辑:豆豆)
下一篇:

家庭拨号上网路由器的设置

上一篇:

无线路由器如何设置密码

  • 信息二维码

    手机看新闻

  • 分享到
打赏
免责声明
• 
本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们 xfptx@outlook.com