Article Directory
Install
To use rz, sz commands to transfer files, you need to install lrzsz on the server:
yum -y install lrzsz
upload
To upload a file, you only need to enter the command "rz" in the shell terminal emulator, and you can select the file on the local disk from the pop-up dialog box and upload it to the current path of the server. [Select the file to be uploaded, multiple files can be specified at a time]
download
To download a file, you only need to enter the command "sz file name" in the shell terminal emulator to download the file to a local directory.
sz用法:
下载一个文件:sz filename
下载多个文件:sz filename1 filename2
//在xshell上使用 sz filename1 fiename2会弹出对话框,自己指定下载到本地哪个文件夹下:
下载dir目录下的所有文件,不包含dir下的文件夹:sz dir/*
comparison tool
The reason why the dialog box pops up is that in the session property setting, the "Always ask before downloading" is checked,
and if SecureCRT is used, the dialog box will not pop up, because the SecureCRT session property does not have the "Always ask before downloading" option for checking :