In this article, we will take a look at how to copy all files from the directory to a local folder,
Remote Folder Directory:# ls -ltrh
total 8.0K
-rw-r--r-- 1 root root 100 Apr 1 12:34 data.txt
-rw-r--r-- 1 root root 9 Apr 8 12:28 2022-02-04-server.log
-rw-r--r-- 1 root root 0 Apr 8 12:29 localhost.log
-rw-r--r-- 1 root root 0 Apr 8 12:29 image.png
SCP Command:
# scp -r user@192.xxx.xxx.xxx:/usr/data/myRemoteDir/ /path/local/dir
Password:
data.txt 100% 100 1.8KB/s 00:00
2022-02-04-server.logs 100% 8 0.12KB/s 00:01
localhost.log 100% 8 0.1KB/s 00:00
image.png 100% 8 0.22KB/s 00:00
✌️Use -r to copy all the files within a directory with scp command.
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:
- Mac - Steam Needs to Be Online to Update. Please confirm your network connection and try again error - News
- Keyboard shortcut to close tab in Notepad++ - NotepadPlusPlus
- Officially Send WhatsApp message using webpage (html) - WhatsApp
- 5 Programming Languages to Learn in the Year 2021 - News
- 🎃 Trending, Popular Halloween hashtags for year 2020 🎃 [Facebook, Twitter, Instagram, Snapchat] - Hashtags
- Eclipse : A java Runtime Environment (JRE) or Java Development kit (JDK) must be available - Java
- [Solved] SharePoint Illegal operation attempted on a registry key that has been marked for deletion - SharePoint
- How to stop disable Facebook video autoplay during scroll - Facebook