A symbolic link, also termed a soft link, is a special kind of file that points to another file, much like
ShortcutIn Windows or
Macintosh alias. Unlike a hard link, a symbolic link does not contain the data in the target file. it simply points to
Linux symbolic link attack tutorial0 × 00 Preface
Linux is the most widely used open-source system. Its unique file system can be regarded as one of the core components supporting the powerful functions of Linux. In the file system, symbolic link)
in LearningHard Linkwith theSymbolic Linkbefore, you need to know a little bit aboutInodewith theData Block. In theLinuxfile system, a file corresponds to aInodewith a number ofData Block. Inodewith theData Blockare identified by a number, such as303
Differences between hard links and soft links (symbolic connections), links and soft linksIn linux, ln commands are provided to link files. File links are mainly divided into hard links and soft links.
Hard link: Because files in linux are
Note: Only for learning Exchange, reprint please specify the source
Similar to Windows system shortcuts, Linux systems also provide a quick way to locate files in different directories. There are two kinds of links in Linux systems: one is hard
LN: This command creates a link between files. This operation is actually to specify another name that can be used to access an existing file in the system. For this new file name, we can specify different access permissions for it to control
OverviewIn this article, you learn to create and manage hard links and symbolic links. Learn:
Create a hard or soft link
Identify links and know their types
Understand the difference between a copy and a linked file
This is a very important command in linux. please be familiar with it. The function is to create a non-same link for a file in another location. The most common parameter of this command is-s. The specific usage is the target file of the ln-s source
There are two types of links, one called hard links (Hard link) and the other is called Symbolic links (symbolic link, also known as soft links). By default, the LN command produces a hard link.
(a) Hard link
1. The syntax to produce hard links
In my previous impression, the ln command under Linux looked like a shortcut under Windows, but after touching the Mklink command under Windows, it found that the links under windows were powerfulThe ln command under Linux
Linux under the LN
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:
and provide relevant evidence. A staff member will contact you within 5 working days.