Linux system can realize file upload and download through command _ without installing tool Linux command

Linux upload folder command _ No need to install tools, one Linux command can upload and download files

Generally, there will be rz and lz commands on Linux servers. When logging in with ssh, you can use these two commands to interact with the server.

installation method

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

Directly use the following command to install the command to upload and download the tool, but note that you need to install yum. If yum is not installed, you need to install it.

yum install lrzsz

The installation is successful as shown in the figure:

 

Two: Now you can use the rz or lz command; 

Use method
 remember: rz command is to upload files, sz command is to download files


 # Download the test.txt file in the current directory sz test.txt# Upload the file, this command can open the interactive meeting to 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, upload at this time The file will be renamed automatically.
 For example, test.txt will be renamed to test.txt.0.


 You can add an option to overwrite the upload, and the file with the same name will be automatically overwritten:
 # Upload the file, if there is a file with the same name, overwrite rz -y
 

Guess you like

Origin blog.csdn.net/xulong5000/article/details/114697278