Common file transfer commands in Linux and how to use them

Source: Internet
Author: User
Tags secure copy

Sftp

SFTP secure FTP is a file transfer management tool based on SSH security protocol. Because it is based on SSH, it will encrypt the user's password, data and other sensitive information in the transmission process, so it can effectively prevent the user information from being stolen in the course of transmission, not only can transfer the file data, but also can carry on the remote file management.

To establish a connection:

# SFTP [email protected]

To upload a file from a local:

# put LocalPath

Download file:

# Get RemotePath

The local operation corresponding to the remote, only need to add "l" before the command, easy to remember.

Example: LCD lpwd lmkdir

Scp

The SCP, secure copy program, is also a file transfer command based on the SSH security protocol. Unlike SFTP, it only provides file transfer between hosts, without the ability to manage files.

Copy local_file to remote directory Remote_folder

# SCP Local_file [email Protected]:remote_folder

Copy Local_folder to remote Remote_folder (need to add parameter-R recursion)

# scp–r Local_folder [email protected]:remote_folder

The above command, in turn, is copied remotely to the local

Sz/rz

Sz/rz is a command based on the Zmodem transport protocol. The transmission of data will be verified, and has good transmission performance, it is very convenient to use.

Download data to local download directory:

# sz filename1 filename2 ...

Upload data to Remote:

# Rz–be

The client will pop up the upload window.

Common file transfer commands in Linux and how to use them

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.