标题:[实践OK]FreeBsd: 安装 rz , sz 工具   出处:向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除 时间:Thu, 05 Oct 2017 18:48:06 +0000 作者:jackxiang 地址:https://jackxiang.com/post/9477/ 内容: [实践OK]FreeBSD中安装pkg:https://jackxiang.com/post/10436/ pkg install lrzsz #一直提示[y|N],没有成功,后用port安装成功了 pkg install -y lrzsz cd /usr/ports/comms/lrzsz make install clean 备注:这种方式为编译安装,安装时同样需要联网下载。 /usr/local/bin/lrx /usr/local/bin/lrz /usr/local/bin/lsb /usr/local/bin/lrb /usr/local/bin/lsx /usr/local/bin/lsz vim ~/.bashrc 在文件末尾添加: export PATH=$PATH:/usr/local/bin source ~/.bashrc cd /usr/local/bin/ ln -s /usr/local/bin/lrz rz ln -s /usr/local/bin/lsz sz Cause This problem may be caused by improper handling of escape sequences embedded in the files being uploaded. Resolution Use the -e or --escape option on lrz, which escapes control characters (Z). For example, type, lrz -e. Some Zmodem clients expect escaping, while others do not. Notes Note, some installations of lrzsz do not have the "sz" or "rz" commands, only "lsz" and "lrz". You can edit your .login file and add lines like "alias sz lsz" and "alias rz lrz -e". This way, when you type "sz" or "rz", it will automatically execute the right program with the right options. lrzsz is part of the FreeBSD ports collection. It contains a set of shell commands for sending and receiving files via the X/Y/ZMODEM protocols. Your SSH or Telnet client must support them for transfers to work. From:http://francs3.blog.163.com/blog/static/405767272014658362237/ 二、pkg 安装方式 1.1 pkg 安装 lrzsz root@francs:~ # pkg install lrzsz Updating repository catalogue The following 2 packages will be installed: Upgrading gettext: 0.18.3.1 -> 0.18.3.1_1 Installing lrzsz: 0.12.20_4 The installation will require 423 KB more space 66 KB to be downloaded Proceed with installing packages [y/N]: y Generated by Jackxiang's Bo-blog 2.1.1 Release