[-문구-Compeople-문구-]

+::System::/Linux2013. 5. 15. 10:49

** 참고 : Sigel's house made of ice 。。。(http://entireboy.egloos.com/4536642)

 

telnet으로 작업하다가 간단하게 파일을 전송하고 싶을 때가 있다. FTP 등을 사용하면 되지만, FTP가 막혀 있는 시스템도 있고.. 파일 한두개 옮기려고 다른 프로그램 실행하기도 귀찮을 때 사용하면 좋은 명령이 있다.

rz와 sz인데..
rz : PC -> 서버 (receives files with ZMODEM)
sz : 서버 -> PC (sends one or more files with ZMODEM)



rz/sz는 ZMODEM을 이용하는 명령이라고 한다. rb/sb는 YMODEM, rx/sx는 XMODEM을 사용하고.. 역시 r이 들어간 명령은 서버 입장에서 receive이고, s는 send이다.

이 명령이 없다면, Yum을 통해 설치하면 된다고 한다.
# yum install lrzsz
lrzsz 설치에 대한건 YUM을 이용한 프로그램 Install (SZ/RZ)rz/sz yum install (설치) 참조

 

** 업데이트 에러발생시

[root@dev-linux08 119.iws.kr]# yum -y install lrzsz
Loaded plugins: fastestmirror, security
Setting up Install Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

* 최근 CentOS 6 버전 업데이트 지원이 종료되면서 yum update 등 명령어 사용 시 오류가 발생하고 있다.

* 해결 방법 : 각 OS Bit에 맞춰 3줄씩 명령어 입력 후 yum update 하면 정상 동작 완료 / 업데이트 사이트 주소 변경.


32Bit
echo "https://vault.centos.org/6.10/os/i386/" > /var/cache/yum/i386/6/base/mirrorlist.txt
echo "http://vault.centos.org/6.10/extras/i386/" > /var/cache/yum/i386/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/i386/" > /var/cache/yum/i386/6/updates/mirrorlist.txt
64Bit
echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt

Posted by Compeople