1 Chapter 37 Files Transfer Protocol (FTP) Programs.

17
1 Chapter 37 Files Transfer Protocol (FTP) Programs

Transcript of 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

Page 1: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

1

Chapter 37

Files Transfer Protocol (FTP) Programs

Page 2: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

2

Contents

• Basic Procedure for Using Any FTP Client• Command –Driven Clients (UNIX and Windows 98/95)• Using GUI-Driven Clients• Using the Windows Explorer Interface• Using the Classic WS_FTP Interface• Using Web Browsers to Transfer Files • Fetch (Mac Program)• Finding Files by Using Archie

Page 3: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

3

What Kind of FTP Software You Need

• Web Browsers: – 브라우저는 대부분 FTP client 를 가짐 .

• Command-Driven Programs: – Some operating systems such as UNIC and

Windows 98.

• GUI Programs: an interface that uses windows and clickable buttons

ex.) WS-FTP(for windows)

Page 4: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

4

Basic Procedure for Using Any FTP Client

• Connecting to the FTP Server:

– log in with a user name and password

– 계정이 없으면 anonymous 로 접속( 메시지 앞에 붙는 세 자리 숫자를 통해 FTP Server 에문서 전송 과정을 알 수 있다 . 예를 들면 , 226 은 전송 완료를 표시 )

• Transferring Files: download, upload 할 file 형식 선택– ASCII mode: HTML 을 포함한 text files

– Binary(for Image) mode: unformatted text, graphics, audio, video files

Page 5: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

5

Command-Driven Clients (UNIX & Windows 98/95)

Overview- UNIX GUI 환경에서 명령어를 사용하려면 , open

command shell window (ex. xterm window).

- Windows 98: Start | Run command1. FTP server 의 host name 한 칸 띄우고 ftp 입력2. User name 입력 , 계정이 없으면 anonymous 입력3. Password 입력 , anonymous FTP 는 전자메일 주소를

입력4. 어떤 문서를 어떤 형식으로 download 나 upload 할

것인 지 결정하고 적절한 명령어 사용5. 문서전송이 끝나면 quit 이나 bye 를 써서 FTP

Server 연결을 끊음 .

Page 6: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

6

Changing Directories on the FTP Server

• Type cd, to change directories ( 실행되면 “ 250 CWD command successful” 메시지가 나옴 )

• Type pwd(Print Working Directory), to find out the name of the current directory

• Top folder 를 root folder 라고 하고 , folder A 가 folder B 를 내포하고 있을 때 , A 는 B 의 parent folder 라고 부름 .– cd .. : parent directory 로 변경– cd / : top-level directory 로 옮겨 갈 때– 파일 이름의 대 · 소문자 구별

Page 7: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

7

Listing Files & Folders in the FTP Server’s Current Directory

명령어 dir: 전체 files 과 folders 목록 제시 (ls: 더 짧은 목록 제시 )

– dir c*: c 로 시작하는 file 이나 directory 이름 보여줌

– dir *.txt: 모든 text files 을 보여줌– dir index*: index 로 시작하는 filed 을 보여줌– dir *.zip, dir *.tar, dir *.hqx: 차례대로 PC, UNIX,

Macintosh 컴퓨터의 압축 파일을 모두 보여줌 .

Page 8: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

8

Selecting the Current Folder on Your Computer

• lcd : to change the current local directory• lcd .. : to move to the parent folder of the current

folder• 하위 폴더로 이동하려면 lcd 뒤에 한 칸 띄우고

folder name 입력 .– ex.) lcd c:/myfiles: folder myfiles on the C drive of a PC

Page 9: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

9디렉토리 표시 파일 크기 최종 날짜 파일 이름

Page 10: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

10

Uploading / Downloading Files(I)

- FTP Server 에 접속- download 하고자 하는 파일이 있는 FTP Server 의 directory 로 변경- Current directory 를 download 한 파일을 보관할 computer folder 로 setting- File 의 형식에 따라 ASCII

나 Binary 중에서 선택

- FTP Server 에 접속 - 파일을 보관하고자 하는 FTP Server 의 directory 로 변경- Current directory 를 Upload

할 파일이 있는 computer 의 folder 로 setting

- File 의 종류에 따라 ASCII나

Binary 중에서 선택

Page 11: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

11

Uploading / Downloading Files(II)

get src1.doc src_new.doc

전체 파일 대상 : mget *.html

파일 선택 : y 나 n 사용 전체 : prompt 를 미리 입력

put firstdraft.doc report.doc

전체 파일 대상 : mput *.html

파일 선택 : y 나 n 사용 전체 : prompt 를 미리 입력

get filenameDownload

Upload

put filename

Page 12: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

12

Using GUI-Driven Clients

WS_FTP:http://www.ipswitch.com

WS_FTP Pro Explorer

Page 13: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

13

WS_FTP Pro Classic Interface

사이트를

새로 추가 ,

삭제 기능

Page 14: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

14

Uploading / Downloading

Page 15: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

15

Using Web Browsers to Transfer Files

ftp://rtfm.mit.edu/pub

ftp://userID:password@servername

Page 16: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

16

Fetch (M

ac Program

)

Page 17: 1 Chapter 37 Files Transfer Protocol (FTP) Programs.

17

Finding F

iles by Using A

rchie

www.yahoo.com: Computer & Internet | Internet | FTP Sites | Searching | Archie