crt串口连接linux,linux下SFTP用SecureCRT工具连接

SecureCRT工具:

1、 打开会话窗口

2、 设置服务器设置本地PC的目录

113106557_1_2017101111580898

这个地址用于将该目录下的文件进行上传到linux服务器或把linux上的文件下载到该目录下

3、 打开sftp窗口(或者使用Alt+P快捷键打开sftp窗口)

113106557_2_20171011115808333

查看本地路径:

113106557_3_20171011115808567

======================================

sftp> cd

/home/oracle/app/oracle/admin/centorcl/dpdump/

sftp> ls

dp.log export.log sjzx.dmp;

sftp> get -a sjzx.dmp;

Downloading sjzx.dmp; from

/home/oracle/app/oracle/admin/centorcl/dpdump/sjzx.dmp;

100% 2752KB 2752KB/s

00:00:00 /home/oracle/app/oracle/admin/centorcl/dpdump/sjzx.dmp;: 2818048

bytes transferred in 0 seconds (2752 KB/s)

sftp> ls

dp.log export.log sjzx.dmp;

sftp> lpwd

d:/Documents and Settings/zhangch/My Documents

sftp>

===================================================

4、 在sftp窗口执行命令help,查看sftp可使用的命令

sftp>help

Available commands:

asciiSet

transfer mode to ASCII (设置文件传输模式为ascii)

binarySet

transfer mode to binary(设置文件传输模式为二进制)

cd path Change remote directory to 'path'(这个就不用说了吧~ )

detail remote-path Display system information about remote

file or

folder(查看远程服务器上的文件夹详细信息咯)

例子

sftp> detail

~/huqin

/home/mmap/huqin:

Type:

Directory

Size: 280

uid/gid:

500/500

uid/gid:

500/500

Last Modification

Time: October 16, 2014 10:35:28

Last Access

Time : October 16, 2014 10:36:18

Permissions:

drwxrwxr-x

sftp>

ldetail local-path  Display

system information about local

file or

folder(查看本地pc上的文件夹详细信息咯)

例子:

C:/Users/Administrator/Desktop/snak:

Type:

Directory

Size: 4096

Create

Time : October 14, 2014 14:31:54

Last Modification

Time: October 16, 2014 10:35:48

Last Access

Time : October 16, 2014 10:35:48

File Attributes:

no-attributes

Link Count:

1

sftp>

lcd

pathChange local directory to

'path'(专用于改变本地目录用的喽)

例子:

sftp>lpwd

C:/Users/Administrator/Desktop/snak #当前本地目录

sftp>lcd

E:\Work #改变本地目录为E:\Work

sftp>lpwd#当前本地目录

E:/Work

sftp>

chgrp group path Change group of file 'path' to 'group'(改变path所属的组喽)

chmod mode path Change permissions of file 'path' to 'mode'

(这个也不用说了吧改变权限w/r/x之类的了)

chown owner path Change owner of file 'path' to 'owner'(改变档案的拥有者咯)

exitQuit sftp

helpDisplay this help

text

include filename Include commands from 'filename'

Alternate: <

filename

get [-a | -b]

remote-path Download file

forceascii (-a) or binary (-b)

mode

例子将我的linux服务器的~/testDir下的文件下载到本地pc上

sftp>pwd

/home/mmap

sftp> cd

~/testDir

sftp>pwd

/home/mmap/testDir

sftp>lpwd

C:/Users/Administrator/Desktop/snak

sftp>lls

contral.txt worm.txt

sftp>get -a testFile #-a :以ascii方式下载-b:以二进制方式下载

Downloading testFile from

/home/mmap/testDir/testFile

100% 283

bytes 283 bytes/s 00:00:00

/home/mmap/testDir/testFile:

283 bytes transferred in 0 seconds (283 bytes/s)

sftp>lls #查看本地目录下多了个文件吧

contral.txttestFileworm.txt

sftp>

ln [-s]

existingpathlinkpathHardlink / symlink remote

file(不说了就是个普通的链接命令)

ls [options] [path] Display remote directory listing(不说了就是个ls命令)

lls [options]

[path]Display local directory

listing(专门查看本地目录而用的啦)

mkdir path Create remote directory(不说了就是个创建文件夹命令)

lmkdir path Create local directory(专门创建本地目录而用的啦)

mvoldpathnewpath Move remote file

open

[user@]host[:port] Connect to remote host

put [-a | -b]

local-path Upload file

forceascii (-a) or binary (-b)

mode

例子:将本地pc上的文件以ascii方式上传到我的linux服务器的~/testDir下

sftp>pwd#查看当前服务器路径

/home/mmap

sftp> cd

~/testDir #进入要上传到服务的路径

sftp>pwd

/home/mmap/testDir

sftp>lpwd#查看当前本地pc的路径

C:/Users/Administrator/Desktop/snak

sftp>lls#查看本地pc路径下的文件

contral.txt worm.txt

sftp> put -a worm.txt

#这里没有指定worm.txt的路径,因为会话窗口中已经配置了这个路径

Uploading worm.txt to

/home/mmap/testDir/worm.txt

100% 0 bytes 0 bytes/s 00:00:00

sftp>put -a

C:/Users/Administrator/Desktop/snak/contral.txt

Uploading contral.txt to

/home/mmap/testDir/contral.txt

100% 0

bytes 0 bytes/s 00:00:00

sftp>ls -l w*

c* #查看服务器下文件上传成功否

-rw-rw-r--

mmapmmap 0 Oct 14, 2014 14:32 worm.txt

-rw-rw-r--

mmapmmap 0 Oct 14, 2014 14:32 contral.txt

sftp>

pwdDisplay remote working

directory

lpwdPrint

local working directory

quitQuitsftp

rmdir path Remove remote directory

lrmdir path Remove local directory

rm path Delete remote file

lrm path Delete local file

su username Substitutes

the current user

This is only supported with

VShell for

Windows 3.5 or

later.

type[transfer-mode] Display or

set file transfer mode(查看文件传输方式ascii或二进制)

view remote-path Download and open file

versionDisplay protocol

version

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值