wuyongxiu / wuyongxiu.github.io

随便记录一下......
http://wuyongxiu.github.io
6 stars 3 forks source link

linux rz sz的使用 #34

Open wuyongxiu opened 7 years ago

wuyongxiu commented 7 years ago

lrzsz是一个用来在linux和windows之间进行文件传输的linux命令行工具。并且lrzsz也可以用来直接在linux docker中和windows之间传输文件。

(lrzsz相关知识参看:http://skypegnu1.blog.51cto.com/8991766/1538371)

1 centos下安装lrzsz:

apt-get install lrzsz

(如果报错 E: Unable to locate package lrzsz,则按以下步骤执行
apt-get update
apt-get install lrzsz)

2 linux下载文件 sz

常用参数
-a 以文本方式传输(ascii)。
-b 以二进制方式传输(binary)。
-e 对控制字符转义(escape),这可以保证文件传输正确。
-c command
-i command 在接收端(本地)执行命令,但我没有尝试成功。

下载文件
sz -be xxx.log
(或者) sz -ae xxx.log

(参考文章 http://codingstandards.iteye.com/blog/827637 )

PS:下载文件的时候如果出现错误,可能是没加-e

sheldonshen commented 7 years ago

96年?看来我太老了,:cry:,最近在kingdee园子,看看以后有没有可能碰上博主,:smile:

wuyongxiu commented 7 years ago

原来是随手记的兄弟啊~哈哈哈,认不出来很正常,我长得像86年的。

hunterhug commented 7 years ago

秀秀 长得像85年的正在和你招手

wuyongxiu commented 7 years ago

哈哈哈哈哈,同惨

2017-09-21 16:09 GMT+08:00 皮卡秋秋 notifications@github.com:

秀秀 长得像85年的正在和你招手

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wuyongxiu/wuyongxiu.github.io/issues/34#issuecomment-331084487, or mute the thread https://github.com/notifications/unsubscribe-auth/AQmeIeE1nTnCbTO67Hvp3Yblpl1hbFqvks5skhnQgaJpZM4PXHSH .