FTP
As you saw ftp can be accessed using windows or linux systems using the command prompt. The first step is to use the ftp command.
ftp machinename(eg.,ftp ftp.pwp.blueyonder.co.uk)
or
ftp machineip(eg.,ftp 109.232.23.2)
Then you are asked to enter your username and password. After entering your username and password, you go to the ftp prompt
ftp>
In case if the remote system allows anonymous logins, you can type anonymous for username and type your email address for password. In this way if you want to upload files on a system in which you do not have a username. Email address is for the system to keep records of the anonymous ftp requests.
Once you have logged in, you can use various ftp commands to get information about the files and directories on the server.
Some of the most commonly used ftp commands are provided here.
| Ftp Command | Use |
|---|---|
| ? | request help |
| ascii | to set the mode of file transfer to ASCII (this is default mode) |
| binary | to set the mode of file transfer to binary |
| bye | to exit ftp prompt |
| cd | to change directory on remote machine |
| close | to terminate connection with remote computer (you are still in ftp prompt) |
| delete | to delete a file on remote server |
| get | to copy a file from the remote machine to the local machine (eg., get index.html) or get index.html indexapr16.html (gets the file index.html on the server and saves it as indexapr16.html on the local machine) |
| help | to request a list of all available ftp commands |
| lcd | to change directory on your local machine |
| ls | to list the names in the current remote directory (for windows systems use dir) |
| mkdir | to make a directory in the remote system |
| mget | to get multiple files from the remote server to the local machine. You are prompted with filename y/n. type y to get and n for no. mget * to get all files from the remote server |
| mput | to put multiple files from the local machine to the remote server. You are prompted with filename y/n. type y to get and n for no. mput * to put all files from the local machine directory |
| open | to open a connection with another computer |
| put | to copy one file from local machine to server |
| pwd | to find out the present working directory on the remote server |
| quit | to exit ftp environment |
| rmdir | to remove or delete a directory in the current remote directory |





