1. 下載地址html
能夠在官網https://www.netsarang.com/products/main.html 下載Xshell, 目前最新的版本已經到Xshell 6了shell
本人記錄下安裝的目錄截圖:小程序
2. 若是配置rz和sz做爲上傳和下載的命令微信小程序
安裝命令:
yum install lrzsztomcat
yum install lrzsz
Loaded plugins: fastestmirror
You need to be root to perform this command.
[jasmine.qian@xxx~]$ sudo su
[root@ntgcoachqa01 jasmine.qian]# yum install lrzsz
Loaded plugins: fastestmirror
base | 2.9 kB 00:00:00
base/primary_db | 27 MB 00:00:00
Determining fastest mirrors
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
Is this ok [y/d/N]: y
Downloading packages:
lrzsz-0.12.20-36.el7.x86_64.rpm | 78 kB 00:00:00
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!
從服務端發送文件到客戶端:
sz filename
從客戶端上傳文件到服務端:
rz
在彈出的框中選擇文件,上傳文件的用戶和組是當前登陸的用戶bash
上傳:微信
-bash-3.2$ rz app
敲回車後彈出一個對話框,選擇一個或多個文件,選擇「打開」,上傳完畢以後查看一下工具
-bash-3.2$ ll
total 34332
drwxrwxr-x 6 tomcat tomcat 4096 Jan 9 18:11 chanel
-rw-r--r-- 1 QA_Deploy QA_Deploy 15328672 Jan 9 18:08 chanel.war
drwxrwxr-x 4 tomcat tomcat 4096 Jan 31 15:37 cityon
-rw-r--r-- 1 QA_Deploy QA_Deploy 19645558 Jan 31 13:32 cityon.war
-rw-r--r-- 1 QA_Deploy QA_Deploy 115893 Mar 29 16:08 解讀微信小程序.pptxthis
-bash-3.2$ dir
chanel chanel.war cityon cityon.war 解讀微信小程序.pptx
-bash-3.2$ ls
chanel chanel.war cityon cityon.war 解讀微信小程序.pptx
下載
-bash-3.2$ sz 解讀微信小程序.pptx
敲回車後彈出一個「瀏覽文件夾」對話框,選擇下載文件到哪一個目錄
3. 配置複製和粘貼
在Xshell的工具菜單中,選擇最下方的選項,在新窗口中選擇keyboard and mouse選項
粘貼的更改是以下截圖:鼠標右擊,粘貼剪貼板中的內容
複製的更改是Key mapping中點擊Edit按鈕後,添加一個ctrl + V 命令便可,以下