
SCP - OpenSSH secure file copy is a command that you can make use of to download or upload files and directories to a remote location.
SCP lets you copy files between hosts on a network.
If you want to copy (download) a complete directory and sub-directories from a remote server to your local system you can make use of the SCP command in the below way,
Example: Downloading/Copying files from remote server to your system
% scp -r
user-name@ssh.remote-location-url-and-domain/remote/dir/path
/local/destination/path/to/copy/directory/
As you can see in the above example, -r option lets you copy the entire directory.
Example: Copy the remote directory to the current directory,% scp -r user-name@ssh.remote-location-url/remote/dir/path .
Example: Downloading/Copying files from your system to a remote server
% scp -r
/local/path/to/copy/directory/
user-name@ssh.remote-location-url-and-domain/remote/dir/path
- How to Display content of a file in Terminal Screen?
- How to Install CVS Version Control on Linux/Ubuntu
- How to install and Configure sar sysstat tools in Ubuntu Linux
- ls command to list only directories
- [Ubuntu] Search a package and versions using apt command
- zsh hello world example
- Linux Remove or Delete Files and Directories using Terminal Commands
- How to tar.gz a directory or folder Command
- Calculate days between dates using dateutils ddiff command
- How to ls command to output one entry per line [macOS/Linux/Bash]
- 3 Commands to stop Nginx Server
- Create and write file in single Linux/macOS command
- SCP Copy all files from directory to Local Folder
- How to go to the End of File in Nano Editor
- How to remove/delete a directory in Linux/macOs
- How to Copy Entire Directory to another Directory in Linux
- Execute .bin and .run file Ubuntu Linux
- The Date Command and its usage [Linux - Unix - macOS]
- Fix - ssh-copy-id no identities found error
- How to check uptime of Linux/Unix/macOS system/server using console command?
- How to Select All text in vim/vi editor using Keyboard
- Linux: Create a New User and Password and Login Example
- Command to display epoch time Terminal
- How to install curl on Alpine Linux
- How to exit from nano command
- Fix: Cannot contact reCAPTCHA. Check your connection and try again. - Google
- Java SE JDBC with Prepared Statement Parameterized Select Example - Java
- Comparator with Lambda Examples - Java
- Android read text file from internal storage - Android
- The Date Command and its usage [Linux - Unix - macOS] - Linux
- Are Windows Notepad files recoverable? - NotepadPlusPlus
- TextEdit save file with txt extension - MacOS
- Android Studio : Build Tools 23.0.0 rc1 is deprecated - Android-Studio