Linux scp Example: Copy and Transfer Files and Directories From Remote Linux – Linux Tutorial

By | December 8, 2022

It is easy to copy or transfer files and directories using linux scp command. In this tutorial, we will introduce you how to do.

Transfer files and directories using linux scp

To transfer files and directories using scp command, we can read this tutorial:

Linux scp Command: Transfer Files and Folders Between Linux Computers – Linux Tutorial

Copy files and directories using linux scp

Similar to transfer fils and directories, we can do as follows:

copy files:

scp root@10.12.12.12:/app/jupyter/f1.zip /home/test

This command will copy a f1.zip file from 10.12.12.12 to /home/test

copy directories:

scp -v -r root@10.12.12.12:/app/jupyter/data /home/test

This command will copy a data directory from 10.12.12.12 to /home/test