Last active
August 11, 2019 07:41
-
-
Save donchan922/21b551c3c9f358b7240169e87c2b0223 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ scp [クライアントの転送元パス] [サーバのログインユーザ]@[サーバのIP or ホスト名]:[サーバの転送先パス] | |
# 例1. Macのカレントディレクトリの「hoge.txt」をRaspberry Piのホームディレクトリに転送する | |
$ scp hoge.txt pi@10.253.131.84:~ | |
# 例2. Macの「hoge/hoge.txt」をRaspberry Piの「/home/pi/foo」に転送する | |
$ scp hoge/hoge.txt pi@10.253.131.84:/home/pi/foo | |
# 例3. 複数のファイルをまとめて転送する | |
$ scp hoge.txt bar.txt pi@10.253.131.84:~ | |
# 例4. ディレクトリごと転送する | |
$ scp -r hoge pi@10.253.131.84:~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment