Using FTP Commands
File Transfer Protocol, which uses ports 20 and
21, is a protocol
designed to transfer data across a network. Variations of the ftp
commands are shown:
Starting an FTP session
-
Click on start run and type in "command"
-
Type in "ftp <hostname>"
and hit enter.
-
You will be
prompted for for a log in name and password.
Type them in.
-
Use the following commands to
complete your task.
Command To
start a session:
| ftp -v |
Suprsses any display server response. |
| ftp -n |
Prevents automatic login. |
| ftp -l |
Turns off interactive prompting during file transfer |
| ftp -d |
Displays all ftp commands between the client and
server for debugging. |
| ftp -g |
Disables the gobbling capacity. |
| ftp -s: <file name> |
Runs the text file containing specific ftp
commands. |
| ftp <hostname> |
Connects to the host
|
FTP
Commands
In order to use ftp to connect to
an address or a target machine in order to
communicate.
| CD |
Change working directory |
| DELETE <filename> |
Deletes
file. |
| LS |
Lists
current directory contents |
| BYE |
Ends
connection and log out |
| GET |
Downloads
a file. |
| PUT |
Uploads
a file |
| VERBOSE |
Turns a verbose mode on and offStep |