linux中:this link cannot be used because its target doesn‘t exist

在linux中,有时需要两个文件的硬链接,使用ln -s命令

ln -s ./test.php /urs/test.php.hard

此时,再打开硬链接生成的文件,显示
this link cannot be used because its target doesn’t exist,
问题在于源文件的目录没有写清楚,应该使用绝对路径

ln -s /home/silves/test.php /urs/test.php.hard

此时,再打开硬链接生成的文件,则不会报错

猜你喜欢

转载自blog.csdn.net/Xiang_lhh/article/details/107146242
今日推荐