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

Steps to Create Soft Links on Ubuntu

王林
Release: 2023-12-30 20:55:34
forward
1601 people have browsed it

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template