[Linux] very convenient upload download file tool RZ and SZ

Source: Internet
Author: User
Tags windows download

??

Very handy upload download file tool RZ and SZ on Linux
(This article is for Linux starter friends)

[commonly used in SECURECRT SSH]

█: Install Lrzsz directly with Yum (recommended)
Yum Install Lrzsz-y
Note: Rhel sz can be used directly after the system is installed.


Usage:

1), Upload files:

RZ Local file name

Rz-y local file name overwrite upload


2), download the file:

SZ Remotefilename

Sz-y remotefilename cover Download

The default path to download is in the Windows download folder, under SecureCRT, under the download folder in the installation folder.



█ method Two: Source file compilation method

Installation configuration for CentOS x.x version Lrzsz
Mkdir-p/usr/src/tools
Cd/home/ryan/tools
wget http://down1.chinaunix.net/distfiles/lrzsz-0.12.20.tar.gz
Tar zxvf lrzsz-0.12.20.tar.gz
CD lrzsz-0.12.20
./configure--prefix=/usr/local/lrzsz
Make
Make install
Cd/usr/bin
Ln-s/usr/local/lrzsz/bin/lrz RZ
Ln-s/usr/local/lrzsz/bin/lsz SZ
Rz

█ Method 3:rpm Installation:
RPM IVH lrzsz-x.rpm (go to the disc to find)
Skip over here.


█ Case: A student encountered rz,sz upload download problem

RZ Normal, sz cannot download file to local. But the students also confused. I don't know what it is.

Problem and resolution process:

[email protected] ~]# which SZ
/usr/bin/sz
[Email protected] ~]# Ll/usr/bin/sz
lrwxrwxrwx 1 root root 6 2010/usr/bin/sz-/usr/local/lrzsz/bin/lrz
#===> here, the SZ link to sz---/USR/LOCAL/LRZSZ/BIN/LRZ is clearly seen.

It should be lsz.

relative [email protected] ~]# rm-f/usr/bin/sz
[email protected] ~]# which SZ
/usr/bin/which:no sz in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin :/usr/bin:/root/bin)
[email protected] ~]# LL
Total 52
-RW-------1 root root 994 Dec 6 anaconda-ks.cfg
-rw-r--r--1 root root 26403 Dec 6 Install.log
-rw-r--r--1 root root 4369 Dec 6 Install.log.syslog

[Email protected] ~]# ln-s/usr/local/lrzsz/bin/lsz/usr/bin/sz
#===> Change Link sz--/usr/local/lrzsz/bin/lsz

[Email protected] ~]#/USR/LOCAL/LRZSZ/BIN/LSZ Install.log
Rz
The Zmodem transmission is beginning. Press CTRL + C to cancel.


Transmitting Install.log ...
100% KB kb/s 00:00:01 0 Error

relative [email protected] ~] #ll/usr/bin/sz
lrwxrwxrwx 1 root root 08:00/usr/bin/sz-/usr/local/lrzsz/bin/lsz
[email protected] ~]# LL
Total 52
-RW-------1 root root 994 Dec 6 anaconda-ks.cfg
-rw-r--r--1 root root 26403 Dec 6 Install.log
-rw-r--r--1 root root 4369 Dec 6 Install.log.syslog
[Email protected] ~]# sz Install.log
Rz
The Zmodem transmission is beginning.

Press CTRL + C to cancel.
Transmitting Install.log ...
100% KB kb/s 00:00:01 0 Error

It's OK.

[Linux] very convenient upload download file tool RZ and SZ

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.