您的位置:首页 > 运维架构 > Linux

ftp get/push连接到linux时,都是使用的linux命令

2016-06-13 16:21 567 查看
1.push上传

ftp> pwd

257 "/root" is current directory.

连接到linux时,都是使用的linux命令

ftp> cd /gaozhen

250 CWD command successful.

ftp> ls

200 PORT command successful.

150 Opening ASCII mode data connection for file list.

sysrq.txt

man

custom.txt,custom2.txt

mydan

temp1

datfile

myfile

abc.c

dir.out

f1

DispAllVar

.file1.swo

demo

tt

a.out

gao

tt1,tt2

fileo

.myls.swp

a

file.c

tt1

ifile

file1

temp2

direc

gao1

dir2.out

fieli

datafile

t.txt

ofile

custom

temp

zhen.txt

a,b

f2

temp3

226 Transfer complete.
ftp: 收到 298 字节,用时 0.18秒 1.64千字节/秒。

ftp> put E:\new.sql

200 PORT command successful.

150 Opening ASCII mode data connection for new.sql.

226 Transfer complete.

ftp: 发送 824 字节,用时 0.00秒 206.00千字节/秒。

ftp> ls

200 PORT command successful.

150 Opening ASCII mode data connection for file list.

sysrq.txt

man

custom.txt,custom2.txt

mydan

temp1

datfile

myfile

abc.c

dir.out

f1

DispAllVar

.file1.swo

demo

tt

a.out

gao

tt1,tt2

fileo

.myls.swp

a

file.c

tt1

ifile

file1

temp2

direc

gao1

dir2.out

fieli

new.sql

datafile

t.txt

ofile

custom

temp

zhen.txt

a,b

f2

temp3

226 Transfer complete.

ftp: 收到 307 字节,用时 0.12秒 2.67千字节/秒。

2.下载get

在window上设置一个存放下载下来的文件夹。

ftp> lcd G:\

目前的本地目录 G:\。

ftp> get t.txt

200 PORT command successful.

150 Opening ASCII mode data connection for t.txt (32 bytes).

226 Transfer complete.

ftp: 收到 37 字节,用时 0.06秒 0.62千字节/秒。

ftp>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: