tftp
tftp [options] [host [port] ] [-c command]User interface to TFTP (IPv4 Trivial File Transfer Protocol), which allows users to transfer files to and from a remote machine. The remote host may be specified, and optionally the port, in which case tftp uses host as the default host for future transfers. The version of tftp described here is tftp-hpa.
Options
-c commandRun command as though it had been entered at the tftp prompt. Must be last on the tftp command line.
-m mode
Set the default transfer mode. Usually used with -c.
-v
Verbose mode.
-V
Print version and configuration information and exit.
Commands
Once tftp is running, it issues the prompt:tftp>
and recognizes the following commands:
? [command...]
help [command...]
Print help information. If no command is specified, list the commands and a brief usage message. With a command, list the usage message for that command.
ascii
Shorthand for mode ascii.
binary
Shorthand for mode binary.
connect hostname [port]
Set the hostname, and optionally the port, for transfers.
get filename
get remotename localname
get filename1 filename2 filename3...filenameN
Get a file or set of files from the specified remote sources. The filename can be specified as host:filename to set both host and filename at the same time. In that case, the last host specified becomes the default for future file transfers.
mode transfer-mode
Set the mode for transfers. transfer-mode may be ascii, netascii, binary, octet, or image. The default is ascii.
put filename
put localfile remotefile
put filename1 filename2...filenameN remote-directory
Transfer a file or set of files to the specified remote file or directory. The destination can be specified as host:filename to set both host and filename at the same time. In that case, the last host specified becomes the default for future file transfers. If remote-directory is specified, the remote host is assumed to be a Unix-style system that uses / as the directory path separator.
quit
Exit tftp.
rexmt retransmission-timeout
Set the per-packet retransmission timeout, in seconds.
status
Print status information: whether tftp is connected to a remote host (i.e., whether a host has been specified for the next connection), the current mode, whether verbose and tracing modes are on, and the values for retransmission-timeout and total transmission-timeout.
timeout total-transmission-timeout
Set the total transmission timeout, in seconds.
trace
Toggle packet tracing.
verbose
Toggle verbose mode.
0 comments:
Post a Comment