InsightsTopicsContact
Eckher
Your guide to what's next.
Eckher
Insights
Topics
Home › Eckher Insights › How to scp?
Mar 5, 2020

How to scp?

Using the scp command.

Copying files to a remote server can be accomplished with scp.

Examples:

scp -r local_file remoteaddress.com:remote_dir/remote_file

local_file will be copied to the server into remote_dir. The new file will be named remote_file.

Copying a directory

To copy a directory, use the -r (recursive) option:

scp -r local_dir remoteaddress.com:remote_dir

Do you want a new directory to be created inside remote_dir named local_dir or just copy the contents of local_dir into remote_dir directly?

Cover
See also
What does a senior developer do?
The difference between an intermediate and senior developer.
Creating a JavaScript library with webpack
How to bundle a JavaScript library with webpack?
Publishing an npm package to GitHub Packages
How to publish an npm package to GitHub Packages?
Authenticating to an npm registry
How to authenticate to an npm registry?
Migrating from Google Cloud Source Repositories to GitHub
How to import a repository from Google Cloud Source to GitHub?
System-wide HTTP requests
Inspecting all HTTP network requests.
Eckher
Your guide to what's next.
Copyright © 2021 Eckher. Various trademarks held by their respective owners.