Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the cause of linux's failure to create a soft link?

Shulou Source: shulou.com Published: 2022-06-03 06:40:51 09月21日 Update

In this article, let's take a look at the causes of linux's failure to create soft links. There is a certain reference value, friends in need can refer to, hope to help you.

Examples are as follows:

Make a soft link to the test folder in the / Devops/live-student/ directory. If the connection destination path is the same as the source file, that is, / Devops/live-student/ (or ~), then the command line can use the relative path, as follows:

Ln-s live-1.0-SNAPSHOT-PROD-12/ / Devops/live-student/

However, if the destination path is different from the source path, you need to use an absolute path, as follows:

Ln-s / Devops/live-student/live-1.0-SNAPSHOT-PROD-12 / tmp/

Otherwise, the connected folder will be inaccessible, as shown in the figure:

The above is a brief introduction of what caused the failure of linux to create soft links. Of course, the differences in the detailed use of the above have to be understood by everyone. If you want to know more, welcome to follow the industry information channel!

Tags: Path link reason different file folder purpose reference same abbreviated value command that is article more friend source file directory industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Technology MySQL Redmi Microsoft