Number of hard links to a file in CentOS

Source: Internet
Author: User
Use ls-l to see the number of hard links of a document: [root @ localhosttmp] # ls-litotal104229415drwxr-xr-x2rootroot4096Dec1121: 15etc3167-rw-r -- r -- 2 root

Use ls-l to view the number of hard links of a document:

[Root @ localhost tmp] # ls-li
Total 104
229415 drwxr-xr-x 2 root 4096 Dec 11 etc
39757-rw-r -- 2 root 1602 Oct 30 hl_passwd
 

 

Use the following statement to view the hard links of a file.


[Root @ localhost tmp] # find/-inum39757
Find:/proc/6266/task/6266/fd/4: No such file or directory
/Etc/passwd
/Tmp/hl_passwd

 

However, since hard links cannot be cross-file systems
Add the '-xdev' option if you are starting
Search at a directory that has other filesystems mounted on it,

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.