最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】CentOS中安装ssh的文件传输工具rz sz

CentOS crifan 2555浏览 0评论
[oracle@centos-db ~]$ sz
-bash: sz: 未找到命令
[oracle@centos-db ~]$ rz
-bash: rz: 未找到命令

centos rz sz

[oracle@centos-db ~]$ yum install lrzsz
已加载插件:fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
您需要 root 权限执行此命令。

后来用此处自己的oracle账户,就是sudoer,就是有root权限的。。

所以可以正常安装了:

[oracle@centos-db ~]$ sudo yum install lrzsz
[sudo] password for oracle:
已加载插件:fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                                                      | 3.6 kB  00:00:00
extras                                                                                                    | 3.4 kB  00:00:00
updates                                                                                                   | 3.4 kB  00:00:00
(1/4): base/7/x86_64/group_gz                                                                             | 155 kB  00:00:00
(2/4): extras/7/x86_64/primary_db                                                                         | 115 kB  00:00:00
(3/4): base/7/x86_64/primary_db                                                                           | 5.6 MB  00:00:01
(4/4): updates/7/x86_64/primary_db                                                                        | 2.2 MB  00:00:03
Determining fastest mirrors
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
正在解决依赖关系
依赖关系解决
=================================================================================================================================
Package                     架构                         版本                                  源                          大小
=================================================================================================================================
正在安装:
lrzsz                       x86_64                       0.12.20-36.el7                        base                        78 k
事务概要
=================================================================================================================================
安装  1 软件包
总下载量:78 k
安装大小:181 k
Is this ok [y/d/N]: y
Downloading packages:
lrzsz-0.12.20-36.el7.x86_64.rpm                                                                           |  78 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : lrzsz-0.12.20-36.el7.x86_64                                                                                  1/1
  验证中      : lrzsz-0.12.20-36.el7.x86_64                                                                                  1/1
已安装:
  lrzsz.x86_64 0:0.12.20-36.el7
完毕!
[oracle@centos-db ~]$ rz –help
rz version 0.12.20
Usage: rz [options] [filename.if.xmodem]
Receive files with ZMODEM/YMODEM/XMODEM protocol
    (X) = option applies to XMODEM only
    (Y) = option applies to YMODEM only
    (Z) = option applies to ZMODEM only
  -+, –append                append to existing files
  -a, –ascii                 ASCII transfer (change CR/LF to LF)
  -b, –binary                binary transfer
  -B, –bufsize N             buffer N bytes (N==auto: buffer whole file)
  -c, –with-crc              Use 16 bit CRC (X)
  -C, –allow-remote-commands allow execution of remote commands (Z)
  -D, –null                  write all received data to /dev/null
      –delay-startup N       sleep N seconds before doing anything
  -e, –escape                Escape control characters (Z)
  -E, –rename                rename any files already existing
      –errors N              generate CRC error every N bytes (debugging)
  -h, –help                  Help, print this usage message
  -m, –min-bps N             stop transmission if BPS below N
  -M, –min-bps-time N          for at least N seconds (default: 120)
  -O, –disable-timeouts      disable timeout code, wait forever for data
      –o-sync                open output file(s) in synchronous write mode
  -p, –protect               protect existing files
  -q, –quiet                 quiet, no progress reports
  -r, –resume                try to resume interrupted file transfer (Z)
  -R, –restricted            restricted, more secure mode
  -s, –stop-at {HH:MM|+N}    stop transmission at HH:MM or in N seconds
  -S, –timesync              request remote time (twice: set local time)
      –syslog[=off]          turn syslog on or off, if possible
  -t, –timeout N             set timeout to N tenths of a second
  -u, –keep-uppercase        keep upper case filenames
  -U, –unrestrict            disable restricted mode (if allowed to)
  -v, –verbose               be verbose, provide debugging information
  -w, –windowsize N          Window is N bytes (Z)
  -X  –xmodem                use XMODEM protocol
  -y, –overwrite             Yes, clobber existing file if any
      –ymodem                use YMODEM protocol
  -Z, –zmodem                use ZMODEM protocol
short options use the same arguments as the long ones
[oracle@centos-db ~]$

转载请注明:在路上 » 【已解决】CentOS中安装ssh的文件传输工具rz sz

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.167 seconds, using 22.03MB memory