Linux soft connect with hard connection.

Source: Internet
Author: User

http://blog.csdn.net/ningxinghai/article/details/7342338

Linux's soft connection is equivalent to the window system shortcuts, such as our desktop QQ and so on.

A hard connection is equivalent to copying a file, but the difference is two file content synchronization . If you create a hard connection b for file A, if I modify the contents of a, the content in B will also be updated.

command to create a soft connection: ln-s source file Destination file

command to create a hard connection: ln source file Destination file

hard connections cannot be created across zones , such as the/home directory and the/ect directory is not a partition, a This file is now in the/home directory, and you want to create a hard connection to a file to the/ect directory is not possible.

Soft joins can be created across zones

Personal:

-rwxr--r-- 2 root root 1222 Apr 6 15:20 Login.txt

The 2 here refers to a file with two hard connections pointing to login.txt. "That is, the Login.txt has two copies of the files, the two files are synchronized with the source file, that is, the source file changes will be updated to the copy file"

drwxr--r--

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.