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.
- Use ‘cd’ to change into the remaining directories: Type: cd games
- 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
- Click Start, point to Settings, and click Control Panel
- In control panel, double-click Add/Remove programs
- Select Add/Remove windows components
- In the windows components wizard, select IIS, then click Detail
- Select Common files, Documentation, File Transfer Protocol (FTP)
. Click next
- If you are prompted to configure terminal service, click next
- If you are prompted for a path for a FTP root folder, type a suitable folder path. The default is C:\Inetpub|Ftproot.
- When you are prompted, Insert the Windows 2000 CD , then click ok
- Click finish IIS and FTP service are now installed, but we must configure the FTP service before we can use it.