Download File - Ram Chavan

Transcript
ascii
Switches to ASCII transfer mode
binary
Switches to binary transfer mode
cd
Changes directory on the server
close
Terminates the connection
del
Deletes a file on the server
dir
Displays the server directory
get
Fetches a file from the server
hash
Displays a pound character for each block transmitted
help
Displays help
lcd
Changes directory on the client
mget
Fetches several files from the server
mput
Sends several files to the server
open
Connects to a server
put
Sends a file to the server
pwd
Displays the current server directory
quote
Supplies an FTP command directly
quit
Terminates the FTP session
For most versions, FTP commands are case-sensitive. If you type commands in uppercase, FTP will
display error messages. Some versions perform a translation for you, so it doesn't matter which case you
use. Because Linux uses lowercase as its primary character set for everything else, you should probably
use lowercase with all versions of FTP, too.
How FTP Uses TCP
The File Transfer Protocol uses two TCP channels: TCP port 20 is used for data, and port 21 is for
commands. Both these channels must be enabled on your Linux system for FTP to function. The use of
two channels makes FTP different from most other file transfer programs. By using two channels, TCP
allows simultaneous transfer of FTP commands and data. FTP works in the foreground and does not use
spoolers or queues.
FTP uses a server daemon that runs continuously and a separate program that is executed on the client.
On Linux systems, the server daemon is called ftpd. The client program is ftp.