Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dd876d0

Browse files
karlsoderby91volt
andauthored
Apply suggestions from code review
Co-authored-by: Ernesto Voltaggio <92443068+91volt@users.noreply.github.com>
1 parent c26ef88 commit dd876d0

File tree

1 file changed

+12
-1
lines changed
  • content/hardware/02.uno/boards/uno-q/tutorials/05.ssh

1 file changed

+12
-1
lines changed

‎content/hardware/02.uno/boards/uno-q/tutorials/05.ssh/ssh.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ More details on the `arduino-app-cli` tool can be found in the [Arduino App CLI
126126

127127
## File Transfer
128128

129-
To transfer files from your computer to the board, use the `scp` tool. The tool can be used to either **push** or **pull** files to and from the board.
129+
To transfer files from your computer to the board, use the `scp` tool**from your computer's terminal** (not inside an SSH session on the board). The tool can be used to either **push** or **pull** files and folders to and from the board.
130130

131131
This is done by specifying a local path on your computer (e.g., `/User/documents/file.xx`), and a path on the board (e.g., `/home/arduino/`).
132132

@@ -150,6 +150,17 @@ scp arduino@<boardname>.local:/home/arduino/test-transfer.txt ./
150150

151151
This will pull the file to the directory where you run the command. `./` can be replaced by specifying a path (e.g., `/User/documents/`).
152152

153+
### Push/Pull Folders
154+
155+
To **push** a folder, use `-rp` to copy directories **r**ecursively, and **p**reserve times/permissions:
156+
157+
`scp -rp "my-folder" arduino@<board-name>.local:/home/arduino/ArduinoApps/`
158+
159+
To **pull** a folder from the board to your current directory:
160+
161+
`scp -rp arduino@<board-name>.local:/home/arduino/ArduinoApps/my-folder ./`
162+
163+
153164
## Troubleshooting
154165

155166
If the SSH connection fails, there are some common things to check:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /