Linux notes: Link commands, soft links and hard links

Source: Internet
Author: User

Command name: LN
Function: Generate link file
directory where the command is located:/BIN/LN
Usage: LN [-S] Original file destination file
Parameters:
-S create a soft link (do not write this parameter to generate a hard link)

Soft Links:
Similar to shortcuts in Windows. It's just a link to the file it points to.
Hard links (The most important principle is that the hard link is the same as the I node of the original file):
A hard-link file is equivalent to copying a file that is identical to the original file, with the same file permissions, size, content, and the ability to synchronize updates. Hard links can continue to be used when the original file is lost.
Hard links cannot span partitions.
Hard links cannot be used for catalogs.

Linux notes: Link commands, soft links and hard links

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.