author ： long
commonly Linux It will be on the server rz,lz command , In the use of ssh When logging in , You can interact with the server through these two commands .
If you don't have these two commands on the server , You can use the following command to install ：
# about Uubuntu sudo apt-get install lrzsz # about Centos You can use the following command sudo yum install lrzsz Of course, you can also manually download, compile and install , Official website download address ：<http://www.ohse.de/uwe/software/lrzsz.html>, Download the corresponding version of .tar.gz Compressed package . Decompress, compile and install ： ```bash # You can refer to the following command to download and install wget https://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz # decompression tar -xzf lrzsz-0.12.20.tar.gz # install cd lrzsz-0.12.20 ./configure --prefix=/usr/local/lrzsz sudo make sudo make install # Create quick links cd /usr/bin sudo ln -s /usr/local/lrzsz/bin/lrz rz sudo ln -s /usr/local/lrzsz/bin/lsz sz
rz The order is Upload files ,
sz The order is Download the file
# Download the current directory of test.txt file sz test.txt # Upload files , This command can open the interactive meeting and select the file to be uploaded rz
Sometimes we will encounter the uploaded file with the same name as the file in the current folder , The uploaded file will be renamed automatically .
Such as test.txt, Will be renamed test.txt.0.
You can add options to overlay uploads , Files with the same name are automatically covered ：
# Upload files , If there is a file with the same name, it will be overwritten rz -y
Recent hot article recommends ：
I think it's good , Don't forget to like it + Forward ！