FTP Flashcards

1
Q

FTP默认端口是什么

A

21负责发起和建立连接

20负责传输数据

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

设定以二进制方式传送文件

A

bin或image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

改变当前本地主机的工作目录,如果缺省,就转到当前用户的HOME目录

A

lcd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

建立制定FTP服务器连接,可指定连接端口

A

open host [port]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

重新建立一个新的连接

A

open host [port]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

删除一批文件

A

mdelete [remote-files]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

返回上级目录

A

cdup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

从远端主机接受一批文件至本地主机

A

mget [remote-files]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

设定以ASCII方式传送文件(缺省值)

A

ascii

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

列出当前远端主机目录中的文件,如果有本地文件,就将结果写至本地文件。

A

dir 或 ls [remote-directory] [local-file]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

显示当前FTP的状态

A

status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

在本地机中执行交互shell,exit回到ftp环境

A

!

如:!ls *.zip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

从远端主机中传送至本地主机中

A

get或recv [远程主机文件名] [下载到本地后的文件名]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ftp的命令行格式为?

A
ftp 参数 [主机名]
参数有:
-v:显示所有响应信息
-d:使用调试方式
-n:限制ftp的自动登陆,即不使用.netrc文件
-g:取消全局文件名
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

每完成一次文件传送,报警提示

A

bell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

设置mget命令拷贝的文件名全部转换为小写字母

A

mcase

17
Q

改变远端主机的文件权限

A

chmod

18
Q

重新以别的用户名登陆远端主机(如hijack,密码:123456)

A

user user-name:123456 hijack

19
Q

将本地主机中一批文件传送到远端主机

A

mput local-files

20
Q

定义宏命令

A

macdef

21
Q

在远端主机中建立目录

A

mkdir 目录名

22
Q

交互提示模式

A

prompt

23
Q

显示远端主机系统类型

A

system

24
Q

终止主机FTP进程,并推出FTP管理方式

A

bye或quit

25
Q

将本地一个文件传送至远端主机中

A

put或send 本地文件名 [远端文件名]

26
Q

中断与远端服务器的ftp会话(与open对应)

A

close

27
Q

改变远端主机的文件名

A

rename [from] [to]

28
Q

删除远端主机中的目录

A

rmdir 目录名

29
Q

删除远端主机中的文件

A

delete

30
Q

列出当前远端主机目录

A

pwd

31
Q

进入远程主机目录

A

cd