FTP Commands and Setup: A Comprehensive Guide, Slides of Computer Networks

An overview of ftp (file transfer protocol), its objectives, types of users, and various commands. It also includes a step-by-step guide on how to download files using ftp and setting up an ftp server on windows 2k.

Typology: Slides

2013/2014

Uploaded on 01/29/2014

jamil
jamil 🇮🇳

4

(12)

139 documents

1 / 28

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Ftp Commands
OBJECTIVES
. General overview
. Introduction to FTP server
. Types of FTP users
. FTP commands examples
. FTP commands in action (example of use)
. Win 2K FTP setup
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c

Partial preview of the text

Download FTP Commands and Setup: A Comprehensive Guide and more Slides Computer Networks in PDF only on Docsity!

Ftp Commands

OBJECTIVES

. General overview

. Introduction to FTP server

. Types of FTP users

. FTP commands examples

. FTP commands in action (example of use)

. Win 2K FTP setup

General Overview

Internal client Private FTP server INTERNET External client

Ways to connect to an FTP

server

We can configure FTP servers

one of two ways.

 Private user-only site. Allows only system

users to connect via FTP and access their

files.

 Anonymous. Allows anyone on the network

to connect to it and transfer files without

having an account.

More ftp commands

 prompt Turns off confirming uploads/downloads  bin Change the transfer of files to binary mode  hash Turn on hash indicators for download/upload  get [filename] Allows to download the specified filename  mget [filespec] Allows multiple download of specified fiels  put [filename] Allows for upload of specified filename

Example… Assume you are required to download the file lan.txt from papa.cdrom.com/pub/games/

2. Type ftp

The system will respond with something

similar to.

>331 Guest login ok, send your complete

e-mail address as password

>Password: (type your email)

3. After the welcome message that may look

something like this.

230 guest login ok, access restrictions apply.

Remote system type is UNIX.

We must now change to the directory

“/pub/games”

Type in

cd pub (this will change to the directory

pub), in this directory we will find

downloadable material.

  1. Use ‘cd’ to change into the remaining directories: Type: cd games
  1. Use ‘dir’ to find the file: Type: dir l* to get a listing of all files which start with ‘l’. You should see: - rw-rw-r– 1 2066 ftp-game 134868 Jun 30 2001 lan.txt
  • Because there is no ‘d’ at the far left, you know that it is a file, not a directory.
  • The 134868 is the file size, it is 134,868 bytes (approx. 134 Kb). It was last modified on the 30 th of June 2001.

Type: get lan.txt And type ‘ y ’ when asked to confirm.

  • lan ’ will now download, and will soon be on the computer you ran ‘ ftp ’ from.
  • Alternately, if you want to download multiple files, you could type: ‘ mget * ’, this would download all files in the directory; ‘ mget l* ’ would download all files beginning with ‘ l ’.
  • If you do not wish to confirm each download one by one, type ‘ prompt ’ to turn that off. If you wish to have a download indicator, type ‘ hash ’.

6b. To upload:

  • To upload a file you must be in a directory you are allowed to upload into.
  • You would type ‘ put lan.txt ’ if you wished to upload ‘ lan.txt ’ or ‘ mput l* ’ to upload all files beginning with ‘ l ’ for example.
  • Make sure that you type ‘ bin ’ again before you upload anything.

Installing FTP server in windows 2K

We Must make sure that IIS (Internet Information Service) is installed. To install IIS and the FTP service, follow this steps

  1. Click Start, point to Settings, and click Control Panel
  2. In control panel, double-click Add/Remove programs
  3. Select Add/Remove windows components
  4. In the windows components wizard, select IIS, then click Detail
  5. Select Common files, Documentation, File Transfer Protocol (FTP)

. Click next

  1. If you are prompted to configure terminal service, click next
  2. If you are prompted for a path for a FTP root folder, type a suitable folder path. The default is C:\Inetpub|Ftproot.
  3. When you are prompted, Insert the Windows 2000 CD , then click ok
  4. Click finish IIS and FTP service are now installed, but we must configure the FTP service before we can use it.