FTP
– FTP, the File Transfer Protocol, is used to
transfer files from system to system.
Internet
Explorer interconnectivity allows for a Windows Explorer
type of GUI environment for the file transfer by allowing
functionality of file and folder views and drag and drop/copy and paste.
The command-line FTP tool allows for more functionality. FTP is considered to
be a connected session using Transmission Control Protocol (TCP).
FTP commands are listed in the
table below.
! |
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 |
|
FTP [-v]
[-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A]
[host]
-
-v –
Suppresses display of remote server responses. -
-n –
Suppresses auto-login upon initial connection. -
-i – Turns
off interactive prompting during multiple file transfers. -
-d –
Enables debugging. -
-g –
Disables filename globbing (see GLOB command). -
-s:filename
– Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts. -
-a – Use
any local interface when binding data connection. -
-A –
Login as anonymous. -
-w:buffersize
– Overrides the default transfer buffer size of 4096. -
-host –
Specifies the host name or IP address of the remote host
to connect to.
[NOTES FROM THE FIELD] –
Use mget and mput commands take y/n/q for yes/no/quit.
Use Control-C to abort actively executing commands.
TFTP
– The Trivial File Transfer Protocol allows for the
connectionless transfer of files to and from systems using
the User Datagram Protocol (UDP).
[NOTES FROM THE FIELD] –
User Datagram Protocol (UDP) is a connectionless protocol
that does not guarantee delivery of data packets between
hosts and is used when data transfer acknowledgments are not
required. It can transmit only small portions of data at a
time because it is not capable of segmenting and
reassembling frames and does not implement sequence numbers.
While TFTP
is limited in functionality, there are still some command-line switches that can be used to tailor its performance.
TFTP [-i]
host [GET | PUT] source [destination]
-
-i –
Specifies binary image transfer mode (also called octet).
In binary image mode the file is moved literally, byte by
byte. Use this mode when transferring binary files. -
host –
Specifies the local or remote host. -
GET –
Transfers the file destination on the remote host to the
file source on the local host. -
PUT –
Transfers the file source on the local host to the file
destination on the remote host. -
source –
Specifies the file to transfer. -
destination – Specifies where to transfer the file.