Linux common upload Download, and cross-machine File Transfer command summary.
Recently completed the project, build a test environment, need to download some software, as well as the presence of a bastion machine, multiple servers between the files of the mutual copy, very troublesome, special to summarize, deepen the impression.
The simplest gentleman is good and false to the thing also. If you have SecureCRT.exe software, it's best.
Directly on secure
1: General with SZ RZ, with control code, plus-e upload rz download sz.
This needs to be a shell terminal such as secure, Linux needs to install LRZ LSE (generally, no and had to Yum)
2: Go to FTP protocol. Use the SECURECRT alt+p key combination to enter the download page.
PWD lpwd The current Linux file copy directory and the Windows replication directory, CD-changer directory,
LS LLS view the files under Linux/winows. Put upload, get download.
1: Download the usual tools on Linux using Yum based on RPM packages,
The syntax yum install xxx is very convenient.
2: For downloading other resources, you can use, wget or curl,ftp. For transfers between servers, you can use SCP
wget: Used to download resources from the specified URL. Usage wget (option) (parameter)
Eg:wget Http://www.baidu.com/xxx/xxx.txt Breakpoint To continue the words can add-c, background download can-B
Wget-c URL wget-b URL
Curl: Used to download resources from the specified URL. Usage wget (option) (parameter)
Eg:curl http://central.maven.org/maven2/org/openbase/jul.processing/1.3.11/jul.processing-1.3.11.jar curl-c-url- -progress
The display progress can be added--progress, the breakpoint can be added with the-C offset system to automatically determine the offset of-c-
SCP is convenient between multiple servers (CP is a native copy, SCP is cross-machine)
SCP (option) (parameter)
-P Port Root is the identity to which to log on to the remote machine. These two parameters are subject to availability.
The ground is uploaded to the remote (directory)
scp-p22222/data/tmp/[email protected] remote ip:/data/tmp/
Remote download to local (file)
scp-p22222 [email protected] remote IP:/DATA/TMP/A.TXT/DATA/TMP
This article from "The Heart has the tiger, the fine smell Rose" the blog, please must keep this source http://zhangdongxu.blog.51cto.com/12029530/1919751
Linux common upload Download, and cross-machine File Transfer command summary.