SCP 從Linux下載文件到Windows本地

  1. 下載單個文件
scp linux_username@linux_ip:[linux上目標文件的路徑] [指定下載到windows本地的路徑]

如:把linux上redis的配置文件6379.conf下載到windows的桌面:

scp [email protected]:/etc/redis/6379.conf /c/Users/wukong/Desktop

  1. 下載文件夾裏所有內容(命令行多了一個 -r
scp -r linux_username@linux_ip:[linux上目標文件的路徑] [指定下載到windows本地的路徑]

如:把linux上redis的所有文件下載到windows的桌面:

scp -r [email protected]:/etc/redis /c/Users/wukong/Desktop
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章