2014-06-19 113 views
0

我想在linux中創建一個符號鏈接,但我總是得到相同的錯誤。創建符號鏈接時出錯

首先我創建符號鏈接是這樣的:

ln -s preproceso/genomas_12juny/Bacteria wwwprueba/webproves/g3/genomas/ 

我要的是在wwwprueba/webproves/g3/genomas/命名爲「細菌」,並用preproceso/genomas_12juny/Bacteria/

的內容,以創建符號鏈接,當我嘗試打開創建的鏈接出現以下錯誤:

The link "Bacteria" is broken. Do you want to move it to the trash? 
The link cannot be used because its destination "preproceso/genomas_12juny/Bacteria" does not exist. 

我在做什麼錯?

回答

2

要麼使用完整路徑指定鏈接,要麼使用相對於創建鏈接的路徑。

+0

這兩個路徑都在我的目錄中。爲了做到這一點,我必須做的不同纔是相對路徑? – Ingrid

+0

@Ingrid:試試:'ln -s ../../../../preproceso/genomas_12juny/Bacteria wwwprueba/webproves/g3/genomas /' – choroba

+0

謝謝,我用全路徑解決了這個問題 – Ingrid