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 Unix-like systems, symbolic links are common and we encounter a variety of processing work related to symbolic links.This article for you to introduce some of the practice of symbolic links, I hope to write a shell script to bring some help, the
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
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
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
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
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
Win7 Platform Mklink command to create symbolic linksFriends who know about the Linux platform know the ln command, which makes it easy to create a symbolic link (also known as a soft link) to a directory or file. Symbolic links are similar to
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
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
# 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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.