Home  >  Article  >  Operation and Maintenance  >  Linux failed to create soft link

Linux failed to create soft link

王林
王林Original
2020-02-14 15:07:185394browse

Linux failed to create soft link

Example:

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 you can use a relative path in the command line, as follows:

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

(recommended related video tutorials: linux video tutorial)

But 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:

Linux failed to create soft link

Related article tutorial sharing: linux tutorial

The above is the detailed content of Linux failed to create soft link. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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