您现在的位置是:网站首页> 编程资料编程资料
CentOS下如何查看一个文件的硬链接数?_RedHat/Centos_操作系统_
2023-03-23
835人已围观
简介 CentOS下如何查看一个文件的硬链接数?_RedHat/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,
相关内容
- CentOS操作系统的22个log日志_RedHat/Centos_操作系统_
- CentOS里alias命令讲解_RedHat/Centos_操作系统_
- CentOS常用网络设置详解_RedHat/Centos_操作系统_
- CentOS允许telnet通过root用户进行访问_RedHat/Centos_操作系统_
- CentOS下SWAP分区建立及释放内存详解_RedHat/Centos_操作系统_
- centos yum只更新安全补丁操作_RedHat/Centos_操作系统_
- CentOS下把home空间的分出来给root的方法_RedHat/Centos_操作系统_
- 把一个用户加入sodu组的方法_RedHat/Centos_操作系统_
- Centos下如何拷贝整个目录命令?Centos下拷贝目录命令的方法_RedHat/Centos_操作系统_
- Centos下限制SSH登录次数详解_RedHat/Centos_操作系统_
