linux之間檔案傳輸scp
inux的scp命令
linux 的 scp 命令 可以 在 linux 之間複製 檔案 和 目錄;
==================
scp 命令
==================
scp 可以在 2個 linux 主機間複製檔案;
命令基本格式:
scp [可選引數] file_source file_target
======
從 本地 複製到 遠端
======
* 複製檔案:
* 命令格式:
scp local_file remote_username@remote_ip:remote_folder
或者
scp local_file remote_username@remote_ip:remote_file
或者
scp local_file remote_ip:remote_folder
或者
scp local_file remote_ip:remote_file
第1,2個指定了使用者名稱,命令執行後需要再輸入密碼,第1個僅指定了遠端的目錄,檔名字不變,第2個指定了檔名;
第3,4個沒有指定使用者名稱,命令執行後需要輸入使用者名稱和密碼,第3個僅指定了遠端的目錄,檔名字不變,第4個指定了檔名;
* 例子:
scp /home/space/music/1.mp3 root@www.cumt.edu.cn:/home/root/others/music
scp /home/space/music/1.mp3 root@www.cumt.edu.cn:/home/root/others/music/001.mp3
scp /home/space/music/1.mp3 www.cumt.edu.cn:/home/root/others/music
scp /home/space/music/1.mp3 www.cumt.edu.cn:/home/root/others/music/001.mp3
* 複製目錄:
* 命令格式:
scp -r local_folder remote_username@remote_ip:remote_folder
或者
======
從 本地 複製到 遠端
======
* 複製檔案:
* 命令格式:
scp local_file remote_username@remote_ip:remote_folder
或者
scp local_file remote_username@remote_ip:remote_file
或者
scp local_file remote_ip:remote_folder
或者
scp local_file remote_ip:remote_file
第1,2個指定了使用者名稱,命令執行後需要再輸入密碼,第1個僅指定了遠端的目錄,檔名字不變,第2個指定了檔名;
第3,4個沒有指定使用者名稱,命令執行後需要輸入使用者名稱和密碼,第3個僅指定了遠端的目錄,檔名字不變,第4個指定了檔名;
* 例子:
scp /home/space/music/1.mp3 root@www.cumt.edu.cn:/home/root/others/music
scp /home/space/music/1.mp3 root@www.cumt.edu.cn:/home/root/others/music/001.mp3
scp /home/space/music/1.mp3 www.cumt.edu.cn:/home/root/others/music
scp /home/space/music/1.mp3 www.cumt.edu.cn:/home/root/others/music/001.mp3
* 複製目錄:
* 命令格式:
scp -r local_folder remote_username@remote_ip:remote_folder
或者
相關文章
- scp傳輸檔案的命令
- Linux scp 後臺執行傳輸檔案Linux
- linux 系統之間傳輸檔案Linux
- mac下用scp命令實現本地檔案與伺服器Linux檔案之間的相互傳輸Mac伺服器Linux
- 在suse和solaris之間互傳檔案_scp
- linux-scp傳檔案Linux
- Linux 下用 SCP 無需輸入密碼傳輸檔案Linux密碼
- Linux SSH遠端檔案/目錄傳輸命令scpLinux
- (轉)Linux之間copy檔案常用方法 scpLinux
- 在 Linux 上安全傳輸檔案的 14 SCP 命令示例Linux
- Linux SSh scp使用【遠端檔案/目錄的傳輸】Linux
- scp不輸入密碼進行檔案傳輸密碼
- expect+scp傳輸檔案發現檔案丟失
- linux 間定時傳輸檔案Linux
- 採用scp命令在Linux系統之間copy檔案Linux
- 加速檔案傳輸:檔案和UDP之間的區別UDP
- PC 和開發板之間傳輸檔案
- Linux 檔案傳輸Linux
- scp命令 用於Linux之間複製檔案和目錄Linux
- 兩機之間不用密碼傳輸檔案(轉)密碼
- Windows -> Linux 檔案傳輸WindowsLinux
- 利用securecrt中的rs, sz在linux與windows之間傳輸檔案SecurecrtLinuxWindows
- Mac Linux檔案互相傳輸MacLinux
- 如何在電腦和樹莓派之間傳輸檔案樹莓派
- Windows到Linux之間的檔案傳輸---putty_psftp_pscp用法簡介WindowsLinuxFTP
- 網際網路使用者之間如何傳輸大檔案
- 什麼是極速檔案傳輸,極速檔案傳輸如何進行大檔案傳輸
- linux下SCP無密碼傳輸(建立互信關係)Linux密碼
- 實現linux和windows檔案傳輸LinuxWindows
- windows伺服器間自動傳輸檔案Windows伺服器
- webservice傳輸檔案Web
- 大檔案如何傳輸,大檔案的傳輸方式有哪些?
- Window主機與Linux 虛擬機器之間的檔案傳輸(二):FileZilla客戶端Linux虛擬機客戶端
- 如何用 scp 在本地和遠端主機之間複製檔案
- Windows&Linux檔案傳輸方式總結WindowsLinux
- 如何傳輸檔案到linux伺服器?Linux伺服器
- 【多檔案自平衡雲傳輸】使用展示 —— 檔案傳輸系統
- 檔案傳輸協議的五種安全檔案傳輸替代方案協議