linux ln 鏈接

將/ftp_TestServer/test.sh鏈接到/usr/local/bin/test2.sh

 

[root@TestServer /]# ln -s /ftp_TestServer/test.sh /usr/local/bin/test2.sh

 

查看../bin的文件如下,可以看出test2.sh是一個鏈接文件

[root@TestServer /]# ls -l /usr/local/bin/

lrwxrwxrwx 1 root root  23  3月 31 10:13 test2.sh -> /ftp_TestServer/test.sh

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章