Learn about how to create symbolic link in linux, we have the largest and most updated how to create symbolic link in linux information on alibabacloud.com
1. Create a symbolic link
# Include Define the function int symlink (const char * oldpath, const char * newpath );Function Description symlink () uses the name specified by newpath to create a new connection (symbolic connection) to the existing
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
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
Using links
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
A symbolic link is an indirect pointer to a file, unlike the hard links from the previous section, which pointed directly to the I-node of the file. symbolic Links were introduced to get around the limitations of hard links.
Hard links normally
1.How to use: ln [option] source_file Dist_file (source_file is the file to be established for the linked file, Dist_file is the newly created link file)-F is created, it is deleted with the file name.-I ask before deleting.LN-S ABC CDE establishes
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
0X00 What is a linked file
The linked file in Linux is the equivalent of a shortcut in Windows, which can be accessed by linking files to the source files that the link points to. However, there is a certain difference between the link file under
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
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.