You are on page 1of 22

File Transfer Protocol

TCP/IP (
internet intranet).
FTP client
server,
server,

server ...



,
,

.


ASCII

ASCII
client
(.. Unix
Unix format, Macintosh
Mac format).

(Binary).
bit bit.
bit
.

.

FTP CLIENTS

CONSOLE CLIENTS
FTP server

"ftp [remote host]", [remote host]



(.. ftp.xyz.com).
/.

"cd"
working directory
.
"ls" "dir"

.

CONSOLE CLIENTS
(Upload)

"put". Upload
"index.html" "test.html". "put
index.html test.html".

upload "put
index.html".
Upload

"mput". "mput *html".

"prompt"
.

CONSOLE CLIENTS
(Download)

get".
test.html" server
index.html". get test.html index.html".
Download

"mget". "mget *html".

"prompt"
.


ascii ASCII.
binary .
bye/quit
ftp.
cd [remote-directory]
remote-directory.
delete [remote-file]
remote-file .
dir/ls [remote-directory]
remote-directory. remote
directory,
.


get [remote-file] [local-file] remotefile . local file,
.
help [command] .
, .
lcd [local-directory] .
,
.
mdelete [remote-files] remote-files
.
mget [remote-files] remotefiles get.
mkdir [remote-directory]
.


mput [local-files] local-files
put.
Prompt /

(mget, mput, mdelete).
put [local-file] [remote-file]
server. remote-file
.
rename [from] [to] from
, to.
rmdir [directory-name]
.
pwd server
.


1. Desktop link
Student on PDC
2. click link
(copy) ftp
3. (paste)
My computer
C Temp
4. ftp (
) dXXXX XXXX

1
console ftp client
server ithaki.eng.auth.gr. username
aetos password aetos.
1.
dxxxx xxxx .
2.

.

1
1.
2.
3.
4.

ftp ithaki.eng.auth.gr
mkdir d9999
cd d9999
mkdir onoma

2
1. C:/temp/dxxxx (xxxx
= )
index.html, login.html, register.html,
verified.html, registered.html
saint.gif
2. server,
.
3. server
.

2
1.
2.
3.
4.

cd onoma
lcd C:/temp/dxxxx
mput *.html saint.gif
pwd

3
1. index.html
server index1.html.
( permission denied )

2. index.html
,
exercise.html.
3. server
index1.html registered.html.
( permission denied )

4.
.

3
1.
2.
3.
4.
5.

rename index.html index1.html


put index.html exercise.html
delete index1.html
delete registered.html
ls

4
1.
.
2. dxxxx

(
dxxxx).
3. server *html
saint.gif
2.
4. ftp server.

4
1.
2.
3.
4.
5.
6.

mdelete *
cd ..
rmdir onoma
mput *html
put saint.gif
bye

You might also like