Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to establish soft links in Ubuntu

Shulou Source: shulou.com Published: 2022-06-01 20:49:40 10月27日 Update

Today, I will talk to you about how to establish soft links in Ubuntu. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

1. first, let's create a text file, and then we will establish a soft link to the file, as shown in the following figure

2. Then we write something to the text file through the Vim editor in Ubuntu, as shown in the following figure

3. Next, use the ln command to establish a soft link, as shown in the following figure, which represents a soft link to 1.txt text on 1-softlink.txt.

4. Listing the contents of the current folder, we can see that the newly created soft link is already in the folder, as shown in the following figure

5. Let's copy the contents of the soft link to a txt text, and you will see the txt text under the current folder

6. At this time, if we delete the source file of the soft link, and then open the txt text of the soft link, you will find that it cannot be opened. This is the same as in the windows system. If the source file is gone, the soft link will lose its function.

7. To sum up, using the ln command to establish a soft link in Ubuntu, the first parameter is the file to establish the soft link, and the second parameter is the name of the soft link.

After reading the above, do you have any further understanding of how to set up soft links in Ubuntu? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Tags: Links files content text folders parameters commands source files next functions names times more knowledge articles systems to sum up editors industries information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia MySQL MariaDB OPPO Reno