lszsz
linux 与Windows 图形化 传输工具之 lrzsz
1.0 安装lrzsz
1.安装
yum -y install lrzsz
[root@centos7 ~]#yum -y install lrzsz
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.bfsu.edu.cn
* updates: mirrors.bfsu.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package lrzsz.x86_64 0:0.12.20-36.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
lrzsz x86_64 0.12.20-36.el7 base 78 k
Transaction Summary
=======================================================================================
Install 1 Package
Total download size: 78 k
Installed size: 181 k
Downloading packages:
lrzsz-0.12.20-36.el7.x86_64.rpm | 78 kB 00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : lrzsz-0.12.20-36.el7.x86_64 1/1
Verifying : lrzsz-0.12.20-36.el7.x86_64 1/1
Installed:
lrzsz.x86_64 0:0.12.20-36.el7
#出现这个表示安装成功
Complete!
2查看安装信息
[root@centos7 ~]#yum list|grep nginx
pcp-pmda-nginx.x86_64 4.3.2-13.el7_9 updates
2.0使用
2.1 sz [文件]
-
作用 :通过这个命令可以达到 centos -----------Windows 传输的效果
-
查找自己要传输的文件
ls -al[root@centos7 ~]#ls -al total 56 dr-xr-x---. 18 root root 4096 Jan 10 23:40 . dr-xr-xr-x. 19 root root 262 Jan 10 16:55 .. -rw-------. 1 root root 2041 Dec 21 20:42 anaconda-ks.cfg -rw-------. 1 root root 1031 Jan 10 19:56 .bash_history -rw-r--r--. 1 root root 18 Dec 29 2013 .bash_logout -rw-r--r--. 1 root root 176 Dec 29 2013 .bash_profile -rw-r--r--. 1 root root 240 Jan 8 20:16 .bashrc drwxr-xr-x. 3 root root 18 Jan 10 20:05 bin drwxr-xr-x. 2 root root 6 Jan 10 20:00 .bin drwx------. 13 root root 277 Jan 8 19:21 .cache drwx------. 14 root root 261 Jan 8 19:21 .config -rw-r--r--. 1 root root 100 Dec 29 2013 .cshrc drwx------. 3 root root 25 Dec 21 20:46 .dbus drwxr-xr-x. 2 root root 6 Jan 8 19:20 Desktop drwxr-xr-x. 2 root root 6 Jan 8 19:20 Documents drwxr-xr-x. 2 root root 6 Jan 8 19:20 Downloads -rw-------. 1 root root 16 Jan 8 19:20 .esd_auth drwxr-xr-x. 10 root root 4096 Jan 10 20:06 git-repo -rw-------. 1 root root 310 Jan 8 19:20 .ICEauthority -rw-r--r--. 1 root root 2072 Dec 21 20:47 initial-setup-ks.cfg drwx------. 3 root root 19 Jan 8 19:20 .local drwxr-xr-x. 2 root root 6 Jan 8 19:20 Music drwxr-xr-x. 2 root root 6 Jan 8 19:20 Pictures drwxr-----. 3 root root 19 Jan 10 20:06 .pki drwxr-xr-x. 2 root root 6 Jan 8 19:20 Public -rw-r--r--. 1 root root 129 Dec 29 2013 .tcshrc drwxr-xr-x. 2 root root 6 Jan 8 19:20 Templates drwxr-xr-x. 2 root root 6 Jan 8 19:20 Videos -rw-------. 1 root root 3182 Jan 10 19:58 .viminfo -rw-------. 1 root root 256 Jan 10 23:27 .Xauthority -
传输示例
假设传输 initial-setup-ks.cfg 文件
[root@centos7 ~]#sz initial-setup-ks.cfg
选择合适的文件传输目录

2.2 rz
-
作用 Windows --------centos
-
示例1

-
示例2

浙公网安备 33010602011771号