Ln command usage

Source: Internet
Author: User

Command name: Ln
Permission: All Users
Usage: Ln [options] source dist, where the option format is:
[-BdfinsvF] [-S backup-suffix] [-V {numbered, existing, simple}]
[-- Help] [-- version] [--]
Note: There is a link in the Linux/Unix File System. we can regard it as the alias of the file.
There are two types of links: hard link and symbolic link)
A hard Link means that an archive can have multiple names, while a soft link generates a special archive. The content of the archive is directed to another archive.
Hard links exist in the same file system, but soft links can span different file systems.
Ln source dist is used to generate a connection (dist) to the source. As for hard link or soft link, it is determined by the parameter.
No matter whether it is a hard link or soft link, it will not copy the original file, it will only occupy a very small amount of disk space.
Parameters:
-F: the file with the same name as dist will be deleted before the link is connected.
-D: System Administrators hard-chain their directories
-I: When deleting an archive with the same name as dist, first ask
-N: dist is considered as a normal file During Soft link.
-S: symbolic link)
-V: display the file name before the link
-B: Back up the files that will be overwritten or deleted during the link.
-S suffix: adds the backup file to the end of SUFFIX.
-V method: Specifies the backup METHOD.
-- Help: displays auxiliary instructions
-- Version: displays the version.
After a hard link is tried, it is found that the hard link is not allowed at any time. After a hard link is established, you cannot tell which is the link or which is not, as if there were two copies of the same content.

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.