Shell commands ln to link files to other directories

Source: Internet
Author: User

In the project you need to train in a batch of new datasets with the same format, without having to copy the new data set to the original training data directory, and simply create a link to the new data file in the original training data directory.
Or when we need to use the same file in a different directory, we do not need to put in every required directory must be the same file, we just put in a fixed directory, the file, and then in other directories with the ln command link, it can, do not have to repeatedly occupy disk space.
command Format :$ ln [参数] [源文件/目录] [目标文件/目录]
As the following code is built under/home/targetdoc (target directory), a/home/data/train_data (source file directory) is created with a soft connection, similar to a shortcut under Windows
$ ln -s /home/data/train_data /home/targetdoc

When you're done, you can $ ll view the links in the current directory
See in more detail: http://www.runoob.com/linux/linux-comm-ln.html

Shell commands ln to link files to other directories

Related Article

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.