Home >Operation and Maintenance >Linux Operation and Maintenance >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:
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!