🧀 Learn Linux

Commonly used · Troubleshooting the network

scp:Copy files via SSH

Syntax

scp [-r] source user@host:target

Options

-r
Copy directories recursively

Examples

scp report.txt user@server:/tmp/

Usage and sandbox support

Just for review: a real remote connection is required.

This command is for reference and review, and the simulation terminal does not provide corresponding exercises yet.

Full documentation ↗

Related commands