欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


DisPlayPort是什么
3D Vision是什么
显卡中CUDA是什么
显卡中PhysX是什么
Windows sever 2008常见问题
微信支付怎么用教程
TP-Link TL-WR886N初始密码是多少?
操作文件夹或文件的权限的命令行工具Icacls
笔记本Mini PCI-E与mSATA接口的区别
教大家暴力清洗键盘
CentOS下如何查看一个文件的硬链接数?
【 来源:网络 】【 点击:1 】 【 发布时间:2017_03_03 08:59:59 】

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

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号
淳安分站 淳安分站