創建:
ln -s 【目標目錄】 【軟鏈接地址】
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
刪除:
rm -rf 【軟鏈接地址】
#正確的刪除方式(刪除軟鏈接,但不刪除實際數據)
rm -rf ./test_chk_ln
#錯誤的刪除方式
rm -rf ./test_chk_ln/ (這樣就會把原來test_chk下的內容刪除)
修改
ln -snf 【新目標目錄】 【軟鏈接地址】
原文鏈接:https://blog.csdn.net/weixin_40744265/article/details/87916847