Sz/rz usage
Generally, ssh clients are used for remote login and management. After using ssh to log on to a linux host, how can I quickly interact with files on a local machine, that is, uploading and downloading files to the server and local device;
Two commands related to ssh can provide convenient operations:
Sz: download files from the server to the local PC
Rz: running this command will pop up a file selection window, from the local selection file upload to the server (receive)
1. Install the sz/rz Toolkit:
(1) download the software rzsz-3.48.tar.gz,, rzsz-3.48.tar.gz.
Free in http://linux.bkjia.com/
The username and password are both www.bkjia.com
Detailed tips for downloading directories in/June/25th/SecureCRT in Linux
----------------------------------------------------------------------------------
(2) extract:
$ Tar zxvf rzsz-3.48.tar.gz
(3) installation:
Go to rzsz-3.48 first:
$ Rzsz-3.48 cd
Then select the location parameter of make based on your system. Generally, choose posix or linux. Run the following command:
$ Make posix
We can clearly see the work in this step from the output section:
(4) to facilitate the use of this tool, copy the relevant files to the/usr/bin directory. Here, you only need to copy two files, rz and sz. The command is:
$ Cp rz sz/usr/bin
2. Usage
A. Copy/download files from windows to Linux (such as SecureCRT ):
After running rz, the file selection dialog box in WIndows is displayed automatically. After selecting the corresponding file, add the file, and click OK, transfer the file in windows and copy it to Linux.
B. Copy files from Linux to a folder in Windows:
Run the following command:
$ Sz file_name
You can copy the file file_name in the current Linux folder to the corresponding directory of Windows. The Windows directory is set by the tool you are running, for example, SecureCRT can be set in "session options"> X/Y/Zmodem.