3-4 Linux Link command

Source: Internet
Author: User

Link command

Command format: ln [options] [source file] [target file]

English intent: Link

Function Description: Create a link for the file, where the type of the link is divided into hard links and soft connections two, the default is to create a hard link. Creating a soft connection requires adding the-s parameter

Introduction to Hard links and soft joins:

Hard Links:

Having the same I node and storage block blocks can be seen as a unified file.

Can be identified by the I node

Cannot span partitions

Cannot use for directory

Deleting a hard-link file does not affect other files of the same I node

Soft Links: Windows-like shortcuts

The soft link has its own I node and block blocks, but the data retains the name of the source file and the I node number, where there is no actual file data

lrwxrwxrwx L Soft link Soft link permissions are rwxrwxrwx

Modify any file another change

Delete source files, soft links cannot be used

      

3-4 Linux Link command

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.