Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

scp

Secure copy files

Syntax

scp [OPTION]... SOURCE DEST

Common Options

-rRecursive copy
-PSpecify port
-iSpecify identity file
-pPreserve attributes
-CEnable compression

Common Examples

scp file.txt user@host:/path/

Copy to remote

scp -r directory/ user@host:/path/

Copy directory

scp user@host:/path/file.txt ./

Copy from remote

Related Commands

Related Tools

More Code & Dev Tools