当前位置:网站首页>硬链接、软连接浅析
硬链接、软连接浅析
2022-08-01 12:20:00 【魔幻音】
inode
磁盘划分:
①inode区:文件在系统中的唯一标识(访问文件时需要找到该文件的inode,其中存储了文件许多参数)
②data block:存放实际数据
③super block:inode和block总量、使用量、剩余量信息,用于分配inode
软连接
类似快捷方式:软连接文件(包含不同inode)指向源文件,再通过源文件找到真实数据inode
ln -s 源文件/目录路径 软连接路径+名称
硬链接
文件别名:通过源文件inode创建新的文件名(不是新文件,就是两个不同文件名指向相同inode),该inode的多个别名都可指向同一个数据
ln 源文件 硬链接路径+名称
区别
①ln:硬链接 ln -s:软连接
②目录不能创建硬链接,且不能跨分区系统创建
③文件和目录皆可创建软链接,可以跨分区系统
④硬链接文件与源文件的inode相同,软连接不同(ls -i可以查看inode号)
⑤软、硬链接的删除对源文件都没有影响
⑥删除源文件:软链接无效,硬链接还可以访问文件内容
⑦删除源文件+硬链接,整个文件才会被真正删除
边栏推荐
- 【倒计时5天】探索音画质量提升背后的秘密,千元大礼等你来拿
- R语言两个时间序列数据的滞后相关性可视化:使用forecast包的ccf函数绘制交叉相关函数,根据可视化结果分析滞后相关性
- 通讯录(静态版)(C语言)(VS)
- Tencent Cloud Native: Service Mesh Practice of Areaki Mesh in the 2022 Winter Olympics Video Live Application
- How to use DevExpress controls to draw flowcharts?After reading this article, you will understand!
- 重庆市大力实施智能建造,推动建筑业数字化转型,助力“建造强市”
- The use of Ts - Map type
- 重磅消息 | Authing 实现与西门子低代码平台的集成
- What is MNIST (what does plist mean)
- R语言ggplot2可视化:使用ggpubr包的geom_exec函数执行geom_*函数(没有任何参数需要放置在aes中)
猜你喜欢

博弈论(Depu)与孙子兵法(42/100)

数据湖 delta lake和spark版本对应关系

程序员的自我修养
![[5 days countdown] to explore the secret behind the great quality promotion, gift waiting for you to take of $one thousand](/img/de/1e6069e84183d1400c90a6ec574f72.png)
[5 days countdown] to explore the secret behind the great quality promotion, gift waiting for you to take of $one thousand

Audio and Video Technology Development Weekly | 256

【倒计时5天】探索音画质量提升背后的秘密,千元大礼等你来拿

bpmn-process-designer基础上进行自定义样式(工具、元素、菜单)

快速幂---学习笔记

How to use DevExpress controls to draw flowcharts?After reading this article, you will understand!

阿里云官方 Redis 开发规范
随机推荐
R语言两个时间序列数据的滞后相关性可视化:使用forecast包的ccf函数绘制交叉相关函数,根据可视化结果分析滞后相关性
Deep understanding of Istio - advanced practice of cloud native service mesh
Envoy source code flow chart
(ES6 and above and TS) Map object to array
formatdatetime函数 mysql(date sub函数)
一文带你读懂云原生、微服务与高可用
安装apex报错
CloudCompare & PCL ICP registration (point to face)
实现集中式身份认证管理的案例
How to successfully pass the CKA exam?
bpmn-process-designer基础上进行自定义样式(工具、元素、菜单)
那些利用假期学习的职场人,后来都怎么样了?
[Open class preview]: Research and application of super-resolution technology in the field of video image quality enhancement
Data frame and remote frame of CAN communication
MNIST是什么(plist是什么意思)
How do programmers solve online problems gracefully?
leetcode/子矩阵元素和
R语言检验时间序列的平稳性:使用tseries包的adf.test函数实现增强的Dickey-Fuller(ADF)检验、检验时序数据是否具有均值回归特性(平稳性)、具有均值回归特性的案例
Qt get all files in a folder
Complete Raiders of JS Data Type Conversion