前言
那么这里博主先安利一些干货满满的专栏了!
首先是博主的高质量博客的汇总,这个专栏里面的博客,都是博主最最用心写的一部分,干货满满,希望对大家有帮助。
高质量博客汇总https://blog.csdn.net/yu_cblog/category_12379430.html?spm=1001.2014.3001.5482
Creation of soft and hard links to files
Soft link creation command:
ln -s source-file target-file
Hard link creation command:
ln source-file target-file
The filename can be a relative path or an absolute path.
example:
The difference between soft and hard links
The essential difference between soft and hard links:
- Soft links have independent inodes
- A soft link is a separate file
- Hard links do not have their own inodes
- A hard link is not a separate file
What is the use of soft and hard links?
soft link
Equivalent to shortcuts under windows!
hard link
The essence is to alias a file!