Linux Base link File

Source: Internet
Author: User

Link file: Access different paths of the same file;

Hard Link: Multiple file paths pointing to the same inode;

Characteristics:

(1) The directory does not support hard links;

(2) Hard link cannot cross file system;

(3) Creating a hard link increases the inode reference count;

Create:

ln src link_file

Symbolic Link: Another file path pointing to a file path;

Characteristics:

(1) Symbolic links and documents are two separate files, each with their own inode; creating symbolic links to the original file does not increase the reference count;

(2) Support to create symbolic links to the directory, can cross the file system;

(3) Delete the symbolic link file does not affect the original file, but delete the original file, the path specified by the symbol does not exist, this will become invalid link;

Note: The size of the symbolic link file is the number of bytes of the path string of its specified file;

Create:

Ln-s src link_file

-v:verbose


Linux Base link File

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.