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,
- [Fix] Linux - bash: useradd: command not found
- Calculate days between dates using dateutils ddiff command
- pwd Command - Print Working Directory
- Rename a directory using Linux/Unix command
- How to go to the End of File in Nano Editor
- How to tar.gz a directory or folder Command
- How to remove/delete a directory in Linux/macOs
- How to Display content of a file in Terminal Screen?
- ls command sort by file size [Linix/UNIX/macOS/bash]
- How to Copy Entire Directory to another Directory in Linux
- 3 ways to clear screen on Linux Terminal
- Command to check Last Login or Reboot History of Users and TTYs
- How to check uptime of Linux/Unix/macOS system/server using console command?
- How to backup a file in Linux/Unix
- Command to know the installed Debian version?
- Check SSH/OpenSSH version Command
- 3 Commands to stop Nginx Server
- Linux: Create a New User and Password and Login Example
- How to install npm on Ubuntu
- How to List All Users in Linux
- How to Get the List of Shells on Linux
- Fix - ssh-copy-id no identities found error
- Installing and using unzip Command to unzip a zip file using Terminal
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- zsh hello world example
More Posts:
- Microsoft Lists and SharePoint Online edit grid view - use undo and redo changes - SharePoint
- Spring Boot Web + Thymeleaf Hello World Example in IntelliJ in 5 Easy Steps - Java
- How to extend retiring SharePoint 2010 Workflows and continue with Office 365 - SharePoint
- Fix: AirPods not visible under Mac Bluetooth devices - MacOS
- import servlet API to eclipse project (javax.servlet cannot be resolved error) - Java
- Spell check not working in Gmail : Mac OS X - Mac-OS-X
- List of Programming Languages Supported by Notepad++ - NotepadPlusPlus
- How to hide or disable iOS 14 App Library on iPhone? - Apple