Use the SCP command to upload downloaded files/folders remotely

Source: Internet
Author: User
Tags scp command

1. Download files from the server

SCP [Email Protected]:/path/filename/local/path
For example: SCP [email protected]:/ygf/data/data.txt/desktop/ygf to download/ygf/data/data.txt files on 117.50.20.56 to/desktop/ In the YGF directory

2. Uploading local files to the server

scp/local/path/local_filename [Email Protected]:/path
For example: scp/ygf/learning/deeplearning.doc [email protected]:/ygf/learning /ygf/learning/the Machine The Deeplearning.doc file in the directory is uploaded to the/ygf/learning directory on this server 117.50.20.56

3. Download the entire directory from the server

scp-r [Email Protected]:/path/path
For example: scp-r [email protected]:/home/ygf/data/local/local_dir "-r" command is a folder directory, the current/home/ygf/data directory to download all files to the local/loc In the Al/local_dir directory

4. Upload directory to server

Scp-r/path [Email Protected]:/path
For example: scp-r/ygf/test [email protected]:/ygf/tx "-r" command is a folder directory, the current/ygf/test directory of all files uploaded to the server's/ygf/tx/directory

Use the SCP command to upload downloaded files/folders remotely

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.