pi@f1:~/smile$ scp office.txt pi@f4:~ <傳送到f4 host pi的home directory>
pi@f4's password:
office.txt 0% 0 0.0KB/s --:--
office.txt 100% 55 0.1KB/s 00:00
<Verify it is completed>
pi@f4:~$ ls
office.txt smile test.txt
pi@f1:~$ scp -r smile pi@f4:~ <SCP 傳送整個目錄>
pi@f4's password:
office.txt 0% 0 0.0KB/s --:-- office.txt 100% 55 0.1KB/s 00:00
office2.txt 0% 0 0.0KB/s --:-- office2.txt 100% 55 0.1KB/s 00:00
<Verify it is completed>
<SCP 抓取檔案>
pi@f1:~$ scp pi@f4:~/f4test.txt ~
pi@f4's password:
f4test.txt 0% 0 0.0KB/s --:-- f4test.txt 100% 22 0.0KB/s 00:00
pi@f1:~$ ls
0626 auto.sh f4test.txt hello smile test.txt
pi@f1:~$ cat f4test.txt
abcd1234567890
<SCP 抓取整個目錄>
pi@f1:~/f4$ scp -r pi@f4:~/smile ~/f4
pi@f4's password:
office.txt 0% 0 0.0KB/s --:-- office.txt 100% 55 0.1KB/s 00:00
office 0% 0 0.0KB/s --:-- office 100% 12 0.0KB/s 00:00
office2.txt 0% 0 0.0KB/s --:-- office2.txt 100% 55 0.1KB/s 00:00
沒有留言:
張貼留言