Yes, most Linux servers have rz and lz commands. You can use these two commands to exchange files with the server when you log in using SSH.

Installation method

If these two commands are not available on the server, you can use the following command to install:

Sudo yum install LRZSZ # yum install LRZSZ # yum install LRZSZ # < http://www.ohse.de/uwe/software/lrzsz.html >, download version of the corresponding. Tar. Gz compressed package. Decompress to compile and install: ` ` ` bash # can refer to the following command to download and install wget https://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz # extract tar - XZF LRZSZ - 0.12.20. Tar. Gz /configure --prefix=/usr/local/ LRZSZ sudo make sudo make install  /usr/local/lrzsz/bin/lrz rz sudo ln -s /usr/local/lrzsz/bin/lsz szCopy the code

Method of use

Remember: rz is upload file, sz is download file

TXT file sz test. TXT file sz test. TXTCopy the code

Sometimes the uploaded file will have the same name as the file in the current folder, and the uploaded file will be renamed automatically.

For example, test. TXT is renamed to test.txt.0.

You can add the option to override uploads automatically for files with the same name:

# upload file, overwrite rz-y if there is a file with the same nameCopy the code

conclusion

Concern public number: programmer Bai Nannan. Get: Birdman’s Linux Home Dish