Ln-s Soft Connect, ln hard link

Source: Internet
Author: User

1. Soft connection

Description: A shortcut similar to win. The soft connection cannot be accessed after the source file is deleted. A soft connection is a different inode than the source file. In general, the newly installed program file name is long and inconvenient to remember, but in the middle of Linux it is recommended to change the source file name. As a result, the newly installed program will create a soft connection for it, and the files and directories can create a soft connection.

Role: To facilitate the use of new programs, after installing a new program will generally create a soft connection.

Case: Create a hard-link file oldboy2

Ln-s Oldboy oldboy2//Create a hard-link file oldboy2


2. Hard Links

Description: A hard connection is connected through the inode, and the different files of the same inode are called hard-link files. Content is automatically synced to other hard-linked files when content is added to a file. The original file is deleted and the file entity is not lost. Only files can create hard links

Role: Hard links can be used to protect important static files from accidental deletion of files. The connection type is a normal file.

Case: Create a hard-link file oldboy2

ln source File Connection file name

ln Oldboy oldboy2//Create a hard-link file oldboy2


This article is from the "11104762" blog, please be sure to keep this source http://11114762.blog.51cto.com/11104762/1828093

Ln-s Soft Connect, ln hard link

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.