Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set the number of hard links in CentOS

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, Xiaobian will bring you the number of hard links on how to set files in CentOS. The article is rich in content and analyzed and described from a professional perspective. After reading this article, I hope you can gain something.

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

[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

Use the following statement to see what hard links a file has

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

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

/etc/passwd

/tmp/hl_passwd

Note, however, that hard links cannot cross file systems, so

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

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

The above is how to set the number of hard links in CentOS shared by everyone. If there is a similar doubt, please refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report