Linux系统中将本地的文件上传到服务器或者从服务器上下载文件到本地可以通过安装lrzsz工具来简单便利的完成。
>>RZ :将本地的文件上传到服务器
>>SZ:从服务器上下载文件到本地
一、工具安装
root@pentest-OptiPlex-3010:~# apt-get install lrzsz Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-89 linux-headers-4.4.0-89-generic linux-image-4.4.0-87-generic linux-image-4.4.0-89-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-89-generic Use 'sudo apt autoremove' to remove them. Suggested packages: minicom The following NEW packages will be installed: lrzsz 0 upgraded, 1 newly installed, 0 to remove and 258 not upgraded. Need to get 0 B/73.8 kB of archives. After this operation, 265 kB of additional disk space will be used. Selecting previously unselected package lrzsz. (Reading database ... 307798 files and directories currently installed.) Preparing to unpack .../lrzsz_0.12.21-8_amd64.deb ... Unpacking lrzsz (0.12.21-8) ... Processing triggers for man-db (2.7.5-1) ... Setting up lrzsz (0.12.21-8) ...
二、工具使用
>> 将本地的文件上传到服务器
>> 从服务器上下载文件到本地