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
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
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
There are two ways to file links in Linux, one is hard link, also referred to as rigid links, the other is symbolic link, also known as symbolic link. To differentiate between the two, review the common Linux ext2 file system. This filesystem uses
First, the mode of useln [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 established and will be deleted with the file name.-I ask before deleting. ln-s
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
Original link: http://blog.csdn.net/janpylx/article/details/6761910First, the mode of useln [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 established
Use of Linux links: Create and delete symbolic connections
1. Usage: ln [Option] source_file dist_file-F: When the file is created, the same file name will be deleted.-I ask before deletion.Ln-s abc cde establishes a soft connection of ABCLn abc cde
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.