
Copy Directory using SCP Command
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
More Posts related to Linux,
- Terminal display next month Calendar
- How to change bash terminal prompt string and color
- How to exit from nano command
- How to Display content of a file in Terminal Screen?
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- 3 Commands to stop Nginx Server
- How to check file permissions for your file using Linux/Unix/macOS Terminal Command
- Create Hidden File or Directory using Shell Command
- bash: cls: command not found
- How to install python pip on Ubuntu using apt command
- The Date Command and its usage [Linux - Unix - macOS]
- SCP Copy all files from directory to Local Folder
- Create and write file in single Linux/macOS command
- Install OpenSSL on Linux/Ubuntu
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- Check SSH/OpenSSH version Command
- Execute .bin and .run file Ubuntu Linux
- What does apt-get update command does?
- How to ls command to output one entry per line [macOS/Linux/Bash]
- 3 ways to clear screen on Linux Terminal
- How to backup a file in Linux/Unix
- How to quit or exit SFTP Prompt on Terminal
- How to use SCP Command to Copy Directory
- zsh hello world example
- How to remove/delete a directory in Linux/macOs
More Posts:
- What is Android Toast.LENGTH_SHORT and Toast. LENGTH_LONG durations - Android
- PHP Script to Upload Images to Server - PHP
- Cannot open or preview pdf with view only and restricted download access in Microsoft Teams - Teams
- Android: Unknown error code during application install : - Android
- What is Bootstrap Jumbotron and how to use it - Bootstrap
- How to configure PDF iFilter for SharePoint - SharePoint
- Microsoft Sign-in Error Code: 50058 (Request Id, Correlation Id and Timestamp) - Microsoft
- How to exclude results from SharePoint Search - SharePoint