Linux安裝rz、sz命令(供SecureCRT上傳下載檔案)
[[email protected] ~]# yum install lrzsz
如果顯示No package lrzsz available.Error: Nothing to do,則說明本地源找不到lrzsz包,需要手動下載並編譯安裝
[[email protected] ~]# wget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz //如果這個下載源不行請手動更換,我試過是可以的
[[email protected] ~]# tar -zxvf lrzsz-0.12.20.tar.gz //解壓並進入
[[email protected] ~]# cd lrzsz-0.12.20
[[email protected] ~]# ./configure --prefix=/usr/local/lrzsz //配置安裝路徑
[[email protected] ~]# make //編譯
[[email protected] ~]# make install //安裝
[[email protected] ~]# cd /usr/bin
[[email protected] ~]# ln -s /usr/local/lrzsz/bin/lrz rz //如果/usr/bin下已存在,刪除
[[email protected] ~]# ln -s /usr/local/lrzsz/bin/lsz sz
到此就安裝完成了,在secureCRT終端輸入rz、sz命令就可以上傳和下載檔案了,親測有效!