728x90 AdSpace

Tuesday, 5 September 2017

tftp Linux Command

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 command
Run 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.
Annamalai Thangaraj

Annamalai is working as Technical Lead in Leading Telecom company with 5+ years experience in Identity and Access Management , Telecom and Networks, BigData, Java, Spring, Struts, Hibernate, AngularJS, and Enterprise Web Application Development.

Website: Java Tutorials Corner

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: tftp Linux Command Rating: 5 Reviewed By: Annamalai Thangaraj