1. download the file scpusername @ servername:/path/filename from the server, for example, scpusername@192.168.0.10: file name (absolute path) download the file on 192.168.0.10 to the current directory 2. Upload the local file to the server scp/path/filenameusername @ servername:/1. download the file from the server
Scp username @ servername:/path/filename
For example, scp username@192.168.0.10: file name (absolute path) to download the file on 192.168.0.10 to the current directory
2. Upload local files to the server
Scp/path/filename username @ servername:/path for example scp file name (absolute path) codinglog@192.168.0.10: /home/wang/upload files in the/home/wang/directory of the local machine to the/home/wang/directory on 192.168.0.10.
3. download the entire directory from the server
Scp-rusername @ servername: remote_dir/local_dir/
Example: scp-r username@192.168.0.10/home/wang/lab_3/home/wang/
4. Upload the directory to the server
Scp-r local_dirusername @ servername: remote_dir
For example:
Scp-rtest codinglog@192.168.0.10:/var/www/upload the test directory under the current directory to the/var/www/directory of the server
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