Home  >  Article  >  System Tutorial  >  Steps to Create Soft Links on Ubuntu

Steps to Create Soft Links on Ubuntu

王林
王林forward
2023-12-30 20:55:341519browse

How to create a soft link in Ubuntu? Let’s take a look at the detailed tutorial below.

1. First, let’s create a text file. Next, we will create a soft link to this file, as shown in the figure below

2. Then we use the Vim editor in Ubuntu to write some content to the text file, as shown in the figure below

3. Next use the ln command to create a soft link, as shown in the figure below, means creating a soft link of the 1.txt text on 1-softlink.txt Link

4. List the contents of the current folder. We can see that the newly created soft link is already in the folder, as shown in the figure below

5. Next we copy the content of the soft link to a txt text, you will see this 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. The source file is gone. Soft links lose their effect

7. In summary, Ubuntu creates a soft link using the ln command. The first parameter is the file to create a soft link. The two parameters are the soft link name

The above is the detailed content of Steps to Create Soft Links on Ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete