The upload file command in Linux is rz. How to install rz: 1. Download and decompress the installation package; 2. Enter the decompressed directory; 3. Configure the installation path; 4. Execute the [make && make install] command to install.
lrzsz-0.12.20.tar.gz is a third-party tool that supports uploading and downloading on the command line interface under Linux. It can be very convenient. role.
(Recommended tutorial: php video tutorial)
# rz 选择文件进行上传 # sz 文件名 sz后面跟文件名可以进行文件从linux上面下载。
First, check whether rz is installed in the virtual machine.
Installation:
Official website download:
Official website download address:
http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
After downloading, you can transfer the file through xftp for installation.
2.yum source installation
yum install -y lrzsz // yum 安装完毕之后可以直接rz尝试使用
2.Command line installation
wget download lrzsz installation package
wget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
Note: Enter wget, if the prompt is not found command, you need yum install wget to install wget command
Extract the installation package
tar zxvf lrzsz-0.12.20.tar.gz
Enter the decompressed directory
cd lrzsz-0.12.20
Configure the installation path
./configure
Enter After the command, an error is reported, proving that gcc is missing in the virtual machine. First install gcc: yum install gcc, and then run ./configure and it will be successful.
Compile & Install
make && make install
Create soft link
The above installation process installs lsz and lrz to the /usr/local/bin/ directory by default:
Enter the /usr/local/bin/ directory: cd /usr/local/bin
1) Create a soft link to rz and name it rz
2) Create a soft link to sz , and name it sz
Note: Soft links are similar to shortcuts under Windows systems. After being deleted, the original files will not be affected; while after hard links are deleted, the original files will not be affected. will also be deleted.
4. Check whether the installation is successful
In the xshell command line, enter rz and press Enter. If the upload file selection box pops up, it means that rz is installed successfully and files can be uploaded.
Related recommendations: php training
The above is the detailed content of What is the upload file command in linux. For more information, please follow other related articles on the PHP Chinese website!