Mastering Ubuntu Server by Jay LaCroix;

Mastering Ubuntu Server by Jay LaCroix;

Author:Jay LaCroix;
Language: eng
Format: epub
Tags: COM046070 - COMPUTERS / Operating Systems / Linux, COM046000 - COMPUTERS / Operating Systems / General, COM046030 - COMPUTERS / Operating Systems / UNIX
Publisher: Packt Publishing
Published: 2022-09-14T09:12:46+00:00


With this example, we’re assuming that myfile.txt is located in the home directory for the user jdoe. This command will copy that file to the current working directory of our local machine, since I designated the local path as a single period (which corresponds to our current working directory). Using scp in reverse isn’t always practical, since you have to already know where the desired file is stored on the target before transferring it.

With our previous scp examples, we’ve only been copying a single file. If we want to transfer or download an entire directory and its contents, we will need to use the -r option, which allows us to do a recursive copy:

scp -r /home/jdoe/downloads/linux_iso [email protected]:downloads



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.