FTP Client Program Standard Commands
This section describes standard commands of FTP client programs.
If you are using a FTP client program with a graphical user interface,
you click icons and links on the client program window to access a FTP server
and download or upload files.
If you are using a FTP client program with a command line user interface,
you need FTP client commands to access a FTP server
and download or upload files. Here are some useful commands supported by most FTP client programs:
- open "host name" - Establishes a connect to the FTP server at the specified host.
- disconnect - Stops the current connect.
- user "user name" - Provides user name and password to pass the access authentication.
- quit - Quits the FTP program.
- dir - Displays the contents of the current directory on the server.
- cd "relative path" - Changes the current directory to specified path on the server.
"cd .." changes the current directory one level up in the directory tree.
- lcd "relative path" - Changes the current directory to specified path on the local system.
- get "file name" - Downloads the specified file from the server.
- put "file name" - Uploads the specified file to the server.
- mget "*.*" - Downloads the specified multiple files from the server.
- mput "*.*" - Uploads the specified multiple files to the server.
- !dir - Displays the contents of the current directory on the local system.
- type "binary|ascii" - Changes the file transfer type to binary or ASCII. In binary type,
files will be transferred as is. In ASCII type, files will be transferred with automatic
conversion to match the receiving system file format. For example, a text file on a Unix FTP
server will be downloaded to a Windows local system with line feed character being converted
to two characters, line feed and carriage return.
- prompt - Switches on or off the prompt for confirmation when using the mget and mput commands.
- help - Displays all available commands supported by the FTP client program.
The "help" command will give a list of all available commands like this:
Commands may be abbreviated. Commands are:
! delete literal prompt send
? debug ls put status
append dir mdelete pwd trace
ascii disconnect mdir quit type
bell get mget quote user
binary glob mkdir recv verbose
bye hash mls remotehelp
cd help mput rename
close lcd open rmdir
Table of Contents
About This Book
1957 - FORTRAN Language Developed by IBM
1970 - UNIX Operating System Developed by AT&T Bell Labs
►1971 - FTP Protocol Created by Abhay Bhushan
What Is FTP?
Example of Downloading Files
Example of Uploading Files
Anonymous FTP Servers
►FTP Client Program Standard Commands
1972 - C Language Developed by Dennis Ritchie
1976 - vi Text Editor Developed by Bill Joy
1977 - Apple II Designed by Steve Jobs and Steve Wozniak
1977 - The Bourne Shell Developed by Stephen Bourne
1978 - The C Shell Developed by Bill Joy
1978 - Bash (Bourne-Again Shell) Developed by Brian Fox
1979 - The Tcsh (TENEX C Shell) Developed by Ken Greer
1983 - "Sendmail" Mail Transfer Agent Developed by Eric Allman
1984 - Macintosh Developed by Apple Inc.
1984 - X Window System Developed a MIT Team
1991 - WWW (World Wide Web) Developed by Tim Berners-Lee
1991 - Gopher Protocol Created by a University of Minnesota Team
1995 - Java Language Developed by Sun Microsystems
1995 - PHP: Hypertext Preprocessor Created by Rasmus Lerdorf
2002 - .NET Framework Developed by Microsoft
PDF Printing Version