SFTP common operations for uploading and downloading files and folders

Source: Internet
Author: User

SFTP common operations for uploading and downloading files and folders

1. view the upload/download directory lpwd

2. Change the upload and download directory (for example, d disk): LCD D :/

3. view the current path
PWD

4. download the file (for example, I want to retrieve the Tomcat log file on the server)
Go to the folder where the file you want is located:
CD/usr/Apache-Tomcat-6.0.39/logs/
Download:
Get Catalina. Out

5. upload a file (for example, I want to upload a file to the USR directory)
Go to the directory where you want to upload files
CD/usr
Upload files
Put do. Sh

6. Upload/download folder format:
Download folder
Get-r folder name
Upload folder
Put-r folder name

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.