CMD 창에서 FTP 사용하기 > etc

본문 바로가기

etc

CMD 창에서 FTP 사용하기

작성일 09-01-07 21:49

페이지 정보

작성자서방님 조회 215회 댓글 1건

본문

==========================================================================================
1. FTP 접속하기
==========================================================================================

C:\> ftp 211.111.111.111(접속하고자 하는 아이피 주소 입력)

Connected to 211.111.111.111.
000-
000-----------------------------------------
000- exam1 Running Server
000- Virtual Outer Public : 111.111.111.111
000- Outer Private : 111.111.111.111
000- Inner Private : 111.111.111.111 (exam1)
000- Welcome to Connect !!!
000-----------------------------------------
000-
000-
000 exam1 FTP server ready.
User (111.111.111.111:(none)): loginID(로그인 아이디 입력)
000Password required for exam.
Password: password(비밀번호 입력)
000 User examlogged in.

ftp>(접속이 성공하면 이렇게 나온다.)

==========================================================================================
2. 파일 복사
==========================================================================================
우선 C:\에 복사하고자 하는 파일을 복사해 놓고,
ftp에 접속해서 아래와 같이 실행한다.

ftp> bin
000 Type set to I.

ftp> put example1.txt(파일이름)
000 PORT command successful.
000 Opening BINARY mode data connection for example1.txt.
000 Transfer complete.
ftp: 어쩌구 bytes sent in 0.00Seconds 어쩌구.00Kbytes/sec.(복사가 성공하면 이렇게 나온다.)

이렇게 하면 파일복사가 끝난다.

==========================================================================================
3. 경로 이동
==========================================================================================

ftp> cd ..(한단계 상위 경로로 이동)
ftp> cd /test/test1/exam(이동하고자 하는 경로)

DOS 명령어인 cd 와 하는 방식이 같다.

==========================================================================================
4. 현재 경로 확인하기
==========================================================================================

ftp> pwd
000 "/test/test1/exam" is
current directory.(이렇게 나온다.)

==========================================================================================
5. ftp 종료하기
==========================================================================================

ftp> bye
000-You have transferred 어쩌구 bytes in 어쩌구 files.
000-Total traffic for this session was 어쩌구 bytes in 어쩌구 transfers.
000-Thank you for using the FTP service on exam1.
000 Goodbye.

C:\>

댓글목록

등록된 댓글이 없습니다.

전체 143건 2 페이지
게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기