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

Source: Internet
Author: User



Easy upload Download file tool RZ and SZ on Linux
(This article is for Linux starter friends)

#########################################################
# old boy Linux Employment Training Center-Junior Class Section seventh of the first part of the summary.
#linux上很方便的上传下载文件工具rz和sz
#date: 2011-06-15
#老男孩, he is currently a lecturer in the Old boys ' Linux Employment Training Center.
#QQ: 31333741 mail:[email protected]
#blog: http://oldboy.blog.51cto.com
#psite: http://oldboy.cc(open soon)
##########################################################

[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.


How to use:

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 download directory for Windows, under SecureCRT, under the download directory of the installation directory.



█ 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 still confused, do not know why.

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
#===> Modify link sz--/usr/local/lrzsz/bin/lsz

[[email protected] ~]#/usr/local/lrzsz/bin/lsz install.log
RZ
Starting Zmodem transmission. Press CTRL + C to cancel.
Transferring 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
Starting Zmodem transfer. Press CTRL + C to cancel.
Transmitting Install.log ...
100% KB kb/s 00:00:01 0 Error

It's OK.

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.