1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [scp](<https://delaparra-services.nl/knowledge-hub/scp>)

  

Category: CLI commands 

# scp

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is scp?

 

scp: Secure Copy Protocol — Copy files between local machine and a remote server over SSH. ` scp ` copies files between computers over SSH. ` scp backup.sql user@server:/tmp/ ` uploads a file, and ` scp user@server:/var/log/app.log . ` downloads one. Add ` -r ` for folders. It uses the same keys and login as ` ssh `, so if you can log in, you can copy.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about scp

  

### What should you keep in mind with scp?

 

For anything beyond the occasional file, ` rsync ` over SSH is usually better. It only sends what changed, can resume interrupted transfers and shows progress. Recent OpenSSH versions also run ` scp ` on top of the SFTP protocol, which fixed some long-standing quirks. Be careful with what you copy around: database dumps and log files often contain personal data, and copies on laptops and in temporary folders are easily forgotten.

 

## At a glance

   CategoryCLI commands Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More CLI commands terms

 

- [ps](<https://delaparra-services.nl/knowledge-hub/ps>) 
- [pwd](<https://delaparra-services.nl/knowledge-hub/pwd>) 
- [rm](<https://delaparra-services.nl/knowledge-hub/rm>) 
- [source](<https://delaparra-services.nl/knowledge-hub/source>) 
- [ssh](<https://delaparra-services.nl/knowledge-hub/ssh>) 
- [sudo](<https://delaparra-services.nl/knowledge-hub/sudo>)

 

[All terms starting with S](<https://delaparra-services.nl/knowledge-hub#letter-s>)

 

## Skills

 

- ### CLI flag safety

 

Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.

 [View skill](<https://delaparra-services.nl/skills/cli-flag-safety>) [Download zip](<https://delaparra-services.nl/skills/cli-flag-safety/download>) 
- ### Debian Linux Triage

 

'Triage and resolve Debian Linux issues with apt, systemd, and AppArmor-aware guidance.'

 [View skill](<https://delaparra-services.nl/skills/debian-linux-triage>) [Download zip](<https://delaparra-services.nl/skills/debian-linux-triage/download>) 
- ### HTTP status debugging

 

Use when an HTTP request returns an unexpected status code (4xx or 5xx, or a redirect loop), when a user pastes an error like "419 Page Expired", "422 Unprocessable Content", "502 Bad Gateway" or "CORS error", or when debugging API calls between a frontend and a Laravel/PHP or Node backend. Finds the cause from the status code, headers and logs before changing code.

 [View skill](<https://delaparra-services.nl/skills/http-status-debugging>) [Download zip](<https://delaparra-services.nl/skills/http-status-debugging/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/scp/skills.zip>)

 

## Manuals

 

- [The terminal commands you actually need](<https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt>) 
- [Deploying a Laravel app](<https://delaparra-services.nl/manuals/je-laravel-app-online-zetten>)

 

## Related services

 

- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)

If you want to use a coding agent, we provide all the infrastructure to help it work efficiently.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/scp)
