Linux upload and download commands rz and sz

Install

yum install lrzsz -y

write picture description here

upload files

Condition: You need to use client tools such as SecureCRT or Xshell to connect to Linux

 rz //跳转到指定要上传的目录执行rz命令

write picture description here

After execution, a selection window for uploading files will pop up, and you can select relevant files to upload (direct upload directory is not supported).

Tip: You can use rz -y to achieve overwrite upload, and the default directory of the upload window can be set in the SSH client.

download file

sz  $filename

write picture description here
write picture description here

Where filename is the name of the file you want to download, if it is a directory, it needs to be packaged into a single file and then downloaded.
$filenameCan be a relative path or an absolute path.

XShell special upload method

Simply drag and drop the file into the XShell command line window.

The pit uploaded by rz

Do not tick the content of the following picture, otherwise there will be problems with the uploaded file.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325766732&siteId=291194637