ftp
[-v] [-d] [-i] [-n] [-g] [host]
The ftp command is used to transfer files between two network sites. It is an implementation of the Arpanet File Transfer Protocol. The command is interactive; the options listed next may be specified either on the command line or at the ftp prompt.
Example: To transfer the file test.txt from the local host (odin) to the remote host (fenris), use
ftp fenris
ftp>put test.txt
To abort a file transfer, use the terminal interrupt key (typically <Ctrl>-C).
-v | Run in verbose operation. Show all responses from the remote server. |
-n | Do not attempt to log in automatically upon making initial connection. Without this option, ftp will check the user's ~/.netrc file for information about the account on the remote machine and use that information to log in. If there is no entry in the ~/.netrc file for the current machine, ftp will prompt the user for login information as appropriate. |
-i | Disable interactive prompting when performing multiple file transfers. |
-d | Run in debug mode. |
-g | Disable file name globbing. |
host | The client machine with which ftp is to connect. |
The ftp program is interactive. The following commands are valid at the "ftp>" prompt.
! [command [args]] | Execute an interactive shell on the local machine. The first argument to ! is taken as a command to be executed; any successive arguments are taken as arguments to the first command. |
$macro-name [args] | Execute the specified macro. Macros are defined with the macdef command. Any arguments are passed unglobbed. |
account [passwd] | Supply login information (account & password) for access to a remote system. |
appendlocal-file [remote-file] | Append the local-file to the remote-file. |
ascii | Set file transfer type to network ASCII (default mode). |
bell | Sound a bell after each transfer completed. |
binary | Set file transfer type to binary. |
bye | Close any connections and exit ftp. |
case | Convert filenames to lowercase letters when transferring to the local machine. |
cdremote-directory | Change to the specified directory on the remote machine. |
cdup | Change to the parent directory of whatever the current directory is on the remote machine. |
chmodmode file-name | Change the file permissions on the remote system as specified. |
close | Close the FTP session with the remote host, but do not exit FTP. |
cr | Toggle carriage return stripping during ASCII-type file retrieval. The default is to strip carriage returns to conform with UNIX standards. |
deleteremote-file | Delete the specified file on the remote machine. |
debug[debug-value] | Specify a debug level. |
dir[remote-directory] [local-file] | Display a list of the contents of the specified remote directory or information about the specified file. If a local-file argument is specified, the listed files will be sent there. |
disconnect | It is the same as close. |
form format | Set the file transfer form to format. |
getremote-file [local-file] | Transfer the specified file from the remote machine to the local machine. |
glob | Toggle filename expansion for mdelete, mget, and mput. |
hash | Toggle hash-sign ("#") printing for each 1024-byte data block transferred. The size of a data block is 1024 bytes. |
help[command] | Display help information for the specified command. |
idle[seconds] | Set the idle timer on the remote machine to the specified number of seconds. |
lcd[directory] | Change directory on the local machine. |
ls[remote-directory] [local-file] | Display a list of the contents of the specified remote directory or information about the specified file. |
macdefmacro-name | Define a macro. The subsequent lines make up the content of the macro; end the macro definition by entering a null line. |
mdelete[remote-files] | Delete the specified files on the remote machine. |
mdirremote-files local-file | Same as dir, except that multiple remote files may be specified. |
mgetremote-files | Get the specified files from the remote machine. |
mkdirdirectory-name | Create a directory on the remote machine. |
mlsremote-files local-file | Display a list of files on the remote machine. There may be more than one remote file specified, and the local file argument (to which the listing is sent) is mandatory. |
mode[mode-name] | Specify the file transfer mode. The default is "stream". |
modtimefile-name | Display the most recent modification time of the specified remote file. |
mputlocal-files | Transfer each file specified to the remote machine. |
newerfile-name [local-file] | Retrieve the specified file if the modification time is more recent than the copy on the local machine. |
nlist[remote-directory] [local-file] | Display the files in the specified remote directory. If a local-file is specified, output from this command will be sent to it rather than the screen. |
nmap[inpattern outpattern] | Toggle the file mapping mechanism. If inpattern and outpattern are specified, files are automatically renamed during transfer according to the specified mapping pattern. |
ntrans[inchars [outchars]] | Toggle filename character translation. If a character mapping is specified, file name characters will be automatically translated as specified during file transfers. |
openhost [port] | Connect to the specified host ftp server. |
prompt | Toggle interactive prompting during multiple file transfers. |
proxyftp-command | Execute an ftp command on a secondary control connection. This command allows simultaneous connection to two remote ftp servers for transferring files between the two servers. |
putlocal-file [remote-file] | Transfer a local file to the remote machine. |
pwd | Display the current working directory on the remote machine. |
quit | This is equivalent to bye. |
quotearg1 arg2 ... | Sends the specified arguments, verbatim, to the remote FTP server. |
recvremote-file [local-file] | Equivalent to get. |
reget remote-file [local-file] | Similar to get, but if local file exists and is smaller than the remote file, it is presumed to be an incomplete transfer. Transfer is continued from the apparent point of failure. |
remotehelp[command-name] | Get help from the remote FTP server on the specified command. |
remotestatus[file-name] | Display status of the remote machine or the specified file on the remote machine. |
rename[from] [to] | Rename a file on the remote machine as specified. |
reset | Clear the reply queue. |
restartmarker | Restart the immediately following get or put at the indicated marker. |
rmdirdirectory-name | Delete the specified directory on the remote machine. |
runique | Toggle storing of files on the local system with unique filenames. If the target file of a transfer already exists and unique mode is set, the file will not be overwritten. Instead, a new file with the same base name, but a ".1" extension is appended to the filename (or ".2", or ".3", , ".99"). |
Sendlocal-file[remote-file] | This is equivalent to put. |
sendport | Toggle the use of PORT commands. |
Sitearg1 arg2 ... | The specified arguments are sent (verbatim) to the remote ftp server as a SITE command. |
Sizefile-name | Display the size of the specified file on remote machine. |
status | Show the current status of ftp. |
struct[struct-name] | Set the file transfer structure to struct-name. By default "stream" structure is used. |
sunique | Toggle storing of files on remote machine under unique file names (see runique). |
system | Display operating system information for the remote host. |
tenex | Set file transfer type such that TENEX machines can be communicated with. |
trace | Toggle packet tracing. |
type[type-name] | Set file transfer type as specified. The default is network ASCII. |
umask[newmask] | Set the default umask on the remote server as specified. |
Useruser-name [password] [account] | Send your user information to the remote ftp server. |
verbose | Toggle verbose mode. |
?[command] | Equivalent to help. |
hostname
[NAME]
Display or set the hostname of the local machine.
Example: To display the host name of the local machine:
hostname
--help | Display help information. |
--version | Display version information. |
netstat
[-venaoc] [--tcp|-t] [--udp|-u] [--raw|-w] [--unix|-u] [--inet|--ip] [--ax25] [--ipx] [--netrom]
netstat
[-veenc] [--inet] [--ipx] [--netrom] [--ddp] [--ax25] {--route|-r}
netstat
[-veenac] {--interfaces|-i} [iface]
netstat
[-enc] {--masquerade|-M}
netstat
[-cn] {--netlink|- N}
netstat
{-V|--version} {-h|--help}
This command displays information (network connections, routing tables, interface statistics, masquerade connections, and netlink messages) about the local network.
Example: To display information about the network status, use
netstat
Example: To see whether your routing table contains a route to the net, use
netstat -nr | grep '192.249.100'
Modes
-r, --route | Display kernel routing tables. |
-i, --interface iface | Display all (or only the specified) network interfaces. |
-M, --masquerade | Display a list of all masqueraded sessions. |
Use -M in conjunction with -e option for sequence numbering and deltas caused by data rewrites on ftp sessions. |
-N, --netlink | Get information about creation or deletion of interfaces or routes. |
Options
-v, --verbose | Display verbose operation. |
-n, --numeric | Display numeric addresses rather than attempting to resolve them into symbolic host, port, or user names. |
-A, --af family | Set the address families as a comma separated list of keywords (inet, UNIX, ipx, ax25, netrom, ddp) |
-c, --continous | Update the display every second until interrupted. |
Output Description
*Active Internet connections (TCP, UDP, RAW)
Proto | The protocol (tcp, udp, raw) used by the socket. |
Recv-Q | The count of bytes not copied by the user program connected to this socket. |
Send-Q | The count of bytes not acknowledged by the remote host. |
Local Address | Local address (hostname) and port number of the socket. |
Foreign Address | Remote address (hostname) and port number of the socket. |
State | Display the state of the socket. |
ESTABLISHED | The socket has an established connection. |
SYN_SENT | The socket is actively attempting to establish a connection. |
SYN_RECV | The connection is being initialized. |
FIN_WAIT1 | The socket is closed, and the connection is shutting down. |
FIN_WAIT2 | Connection is closed, and the socket is waiting for a shutdown from the remote end. |
TIME_WAIT | The socket is waiting after close for remote shutdown retransmission. |
CLOSED | The socket is not being used. |
CLOSE_WAIT | The remote end has shut down, waiting for the socket to close. |
LAST_ACK | The remote end has shut down, and the socket is closed. Waiting for acknowledgment. |
LISTEN | The socket is listening for incoming connections. |
CLOSING | Both sockets are shut down, but we still haven't sent all our data. |
UNKNOWN | The state of the socket is unknown. |
User | The name or the UID of the owner of the socket. |
Proto | The protocol (usually UNIX) used by the socket. |
RefCnt | Display the reference count (i.e., attached processes via this socket). |
Flags | The flags displayed are SO_ACCEPTON (displayed as ACC), SO_WAITDATA (W) or SO_NOSPACE (N). |
Type | There are several types of socket access: |
SOCK_DGRAM | The socket is used in Datagram (connectionless) mode. |
SOCK_STREAM | This is a stream (connection) socket. |
SOCK_RAW | This is a raw socket. |
SOCK_RDM | This socket is used to send reliably delivered messages. |
SOCK_SEQPACKET | This is a sequential packet socket. |
SOCK_PACKET | This is a RAW interface access socket. |
State | Use state with one of the following: |
FREE | Socket is unallocated. |
LISTENING | Socket is listening for a connection request. |
CONNECTING | Socket is about to establish a connection. |
CONNECTED | The socket is connected. |
DISCONNECTING | The socket is disconnecting. |
(empty) | The socket is not connected to another one. |
UNKNOWN | This state should never happen. |
Path | Path name if the corresponding processes are attached to the socket. |
ping
[-dfnqrvR] [-c count] [-i wait] [-l preload] [-p pattern] [-s packetsize]
To ping is to request acknowledgment from a remote host. Terminate ping with <Ctrl>C.
Example: To check the network connection between your computer and the remote host fenris, use
ping fenris
Use this command to see if there is a valid network connection between your computer and another on the network. |
-ccount | Stop after the specified number of packets have been received. |
-d | Set the SO_DEBUG option on the socket being used. |
-f | We use this command to flood ping. Outputs packets as fast as they come back or one hundred times per second, whichever is more. |
-iwait | Wait the specified number of seconds between packets. |
-lpreload | Send the specified number of packets as fast as possible, then return to normal operation. |
-n | Numeric output. Do not resolve addresses into host names. |
-ppattern | Pattern is a sequence of up to 16 bytes used to fill out the packet sent. |
Use the -p option for diagnosing data-dependent network problems. |
-q | Quiet operation. Output summary information only. |
-R | Record route. |
-r | Bypass normal routing and send directly to a host on an attached network. |
-s packetsize | Specify the size of the data packets to be transmitted. |
-v | Display verbose output. |
When setting up a network or debugging network problems, it's a good idea to ping yourself first to make sure everything is working correctly on your end. |
rarp
[-V] [--version] [-h] [--help]
rarp
-a
rarp
[-v] -d hostname
rarp
[-v] [-t type] -s hostname hw_addr
This command is used to access and manipulate the system's reverse address resolution protocol (RARP) table. The RARP is a system for converting a physical network address into an IP address.
Example: To list the RARP table entries, use
rarp -a
-V | Display version information. |
-v | Verbose operation. |
-t type | Tell RARP which class of entries (ether, ax25, netrom) to look for when setting or reading the rarp table. |
-a, --list | List the RARP table entries. |
-dhostname, --deletehostname | Delete the specified host from the table. |
-shostname hw_addr,--sethostname hw_addr | Create an entry in the RARP table for the specified host. |
rcp
[-px] [-k realm] file1 file2
rcp
[-px] [-r] [-k realm] file directory
Copy a file between two machines on the same network.
Example: To copy the file test.txt from the local host to the directory /tmp on the remote machine fenris, use
rcp test.txt fenris:/tmp
-r | Recursively copy any subdirectories found under the source to the destination. |
-p | Attempt to preserve modification times when transferring source files. |
-krealm | Attempt to obtain tickets for the remote host in the specified realm rather than the remote host's realm as determined by krb_realmofhost. |
-x | Do DES encryption for all data passed by rcp. |
rdate
[-p] [-s] [host ]
Get date and time from the specified host via the network.
Example: To get date information from the remote host fenris, use
rdate fenris
-p | Print the date and time (default). |
-s | Set local date and time based on the data obtained. |
rdist
[ -DFn ] [ -A num ] [ -a num ] [ -d var=value ] [ -l <local logopts> ] [ -L <remote logopts> ] [ -f distfile ] [ -M maxproc ] [ -m host ] [ -o distopts ] [ -t timeout ] [ -p <rdistd-path> ] [ -P <rsh-path> ] [ name ]
rdist
-DFn -c name [login@]host[:dest]
rdist
-Server
rdist
-V
This program is used to maintain identical copies of files over multiple hosts. It preserves file data (owner, group, mode, mtime). It reads commands from distfile to direct the updating of files and/or directories. The distfile may be specified on the command line (standard output = "-"), or may be one of "distfile" or "Distfile".
-c | Interpret any remaining arguments as a distfile. |
-Server | Attempt to function in server mode. |
-Anum | Specify the minimum number of free files that must exist on a filesystem in order for rdist to update or install a file. |
-abytes | Specify the minimum amount of free space (bytes) in a filesystem that must exist for rdist to update or install a file. |
-D | Run in debug mode. |
-dvar=value | Override the value of var specified in the distfile. |
-F | Do not fork any child rdist processes (effectively, update all clients in sequence). |
-fdistfile | Specify the distfile to be used. When distfile is specified as "-", read from standard input. |
-llogopts | Specify local logging options. |
-Llogopts | Specify remote logging options. |
-Mnum | Specify an upper limit on the number of child processes to be run simultaneously. |
-mmachine | Specify an upper limit on the number of machines to be updated. |
-n | Display commands, but do not execute them. |
Use rdist with -n option to debug your distfile. |
-odistopts | Specify which dist options to enable. distopts is a comma separated list of options from the following set: |
verify | Verify that the files are all up to date on all the hosts. |
whole | Append the whole filename to the destination directory name. |
noexec | Do not include executable files. |
younger | Update files if their mtime and size disagree. |
compare | Perform a binary comparison, updating files where they differ (as opposed to a time & date comparison). |
follow | Follow symbolic links to copy files. |
ignlnks | Ignore unresolved links. |
chknfs | Do not check or update files that reside on NFS filesystems. |
chkreadonly | If file resides on a readonly filesystem, do not attempt to update. |
chksym | If target on remote host is a symbolic link, but is not on a master host, allow the remote host to remain a symbolic link. This may lead to unwanted results, but has been retained for compatibility with earlier versions. |
quiet | Execute in quiet mode. |
remove | Remove extraneous files (files that exist on remote host but not on master). |
nochkowner | Do not check ownership of existing files. |
nochkgroup | Do not check group ownership of existing files. |
nochkmode | Do not check file and directory permission modes. |
nodescend | Do not recursively descend into directories. |
numchkgroup | Check group ownership via numeric group id, rather than name. |
numchkowner | Check group ownership via numeric uid, rather than name. |
savetargets | Save updated files, rather than removing them. |
-p <rdistd-path> | Specify the path where the rdistd server is searched for on the target host. |
-P <rsh-path> | Specify the path where the rsh command may be found. |
-ttimeout | Specify an upper limit (in seconds) for how long to wait on responses from the rdist server. |
-V | Display version information and exit. |
Distfiles
Distfiles are of the following format:
<variable name> '=' <name list>
[ label: ] <source list> '->' <destination list> <command list>
[ label: ] <source list> '::' <time_stamp file> <command list>
rlogin
[-8EKLdx] [-e char] [-k realm] [-l username] host
Start a terminal session on the specified remote host.
Example: To remotely log in to the host fenris, use
rlogin fenris
-8 | Permit an 8-bit input data path at all times. |
-E | Do not allow the specified character to be recognized as an escape character. |
-K | Disable Kerberos authentication. |
-L | Permit the rlogin session to be run in litout mode. |
-d | Enable socket debugging. |
-e | Permit user specification of the escape character. |
-k | Request rlogin to obtain tickets for the remote host in the specified realm, rather than the remote host's realm. |
-x | Turn on DES encryption for all data passed via the rlogin session. |
rsh
[-Kdnx] [-k realm] [-l username] host [command]
Execute a command on the specified host. Standard input, standard output, and standard error are swapped around, as you might expect.
Example: To invoke a shell on the remote host fenris, use
rsh fenris
-K | Disable kerberos authentication. |
-d | Enable socket debugging. |
-krealm | Get rsh to attempt to obtain tickets for the remote host in the specified realm, rather than the remote host's realm. |
-l | Allow specification of a remote username. (Default is same as local username.) |
-n | Redirect input from /dev/null. No, really. |
-x | Enable DES encryption on all data transferred. |
rusers
[-al] [host ]
Display a list of users logged in on the network.
Example: To display a list of all users currently logged in on the network and to include information on all the hosts on the network regardless of whether anyone is currently logged in (-a option), use
rusers -a
-a | Display all machines responding, even if no one is currently logged on. |
-l | Display a long format listing (i.e., user name, host, tty, date & time of login, idle time, and any remote host information). |
rwall
host [file]
Display a message to the terminal of all users currently logged in to the specified host. Message may be typed in interactively or may be specified in file.
Example: To display the message contained in the file urgent.txt to all the users currently logged in to the network host fenris, use
rwall fenris urgent.txt
rwho
[-a]
Display user and machine information for all users on the local network.
Example: To display user information for all users on the network, use
rwho
-a | Include all logged in users in output, regardless of idle time. |
telnet
[-8ELadr] [-S tos] [-e escapechar] [-l user] [-n tracefile] [host [port]]
Interact with another machine over the network via the telnet protocol. Once you're logged in, network access is pretty much transparent. That is, you'd never know you were logged in across a network rather than directly wired to the machine.
Example: To set up a telnet (interactive network login) session with the remote host fenris, use
telnet fenris
-8 | Specify 8-bit operation. |
-E | Disable escape character. |
-L | Use an 8-bit path on output. |
-a | Attempt automatic login. |
-d | Debug mode. May be interactively toggled back to nondebug mode. |
-r | Emulate rlogin(1). |
-Stos | Use the specified type-of-service. |
-eescapechar | Specify the escape character. |
-luser | Attempt to log in to the remote system as the specified user. |
-ntracefile | Record trace information in the specified tracefile. |
host | Specify the network host you wish to log in to. |
port | Specify a port number or service name to contact (default = 23). |
The telnet command is interactive. The following subcommands apply:
authargument ... | This command controls the TELNET AUTHENTICATE protocol option. The following arguments are valid: |
disable type | Disable the specified type of authentication. |
enable type | Enable the specified type of authentication. |
status | List the current status of the various types of authentication. |
close | Close connection to remote host and return to command mode. |
displayargument... | Display the set and toggle value specified, or all, if none is specified. |
encryptargument... | Control telnet encryption. Valid arguments are as follows: |
disable type [input|output] | Disable specified type of encryption. |
enable type [input|output] | Enable the specified type of encryption. |
input | Same as "encrypt start input". |
-input | Same as "encrypt stop input". |
output | Same as "encrypt start output". |
-output | Same as "encrypt stop output". |
start [input|output] | Attempt to begin encryption. |
status | Display current status of encryption module. |
stop [input|output] | Stop encrypting. |
authargument... | This command controls the TELNET AUTHENTICATE protocol option. The following arguments are valid: |
environarguments... | Specify environment variables to be propagated across the telnet link. Valid arguments are as follows: |
define variable value | Define variable as value. |
undefine variable | Remove definition of variable. |
export variable | Propagate specified variable to the remote host. |
unexport variable | Do not propagate variable to remote host. |
list | List the current set of environment variables. '*' indicates that variable is marked for propagation. |
logout | Log out of remote host. |
modetype | Specify connection mode (character, line, isig, edit, softtabs, litecho). |
openhost[[-l]user][-port] | Open a connection to the specified host. Optionally, your user id on that host and the port number to be connected to may be specified. |
quit | Close connections and exit telnet. |
send arguments | Send one of the following telnet protocol character sequences to the remote host: |
abort | Abort process. |
ao | Abort output (flush all output to the user's terminal). |
ayt | Send the "are you there" sequence. |
brk | Break. |
ec | Erase last character entered. |
el | Erase current line. |
eof | End of file. |
eor | End of record. |
escape | Send telnet escape character. |
ga | Go ahead. |
getstatus | Send current status (if supported). |
ip | Interrupt current running process. |
nop | Send the telnet "no operation" sequence. |
susp | Suspend process. |
synch | Synchronize. Remote system will disregard all typed, but unread input. |
do cmd, dont cmd, will cmd, wont cmd | Send one of the TELNET DO cmd sequences as specified. |
? | Display help information for the send command. |
setargument value, unsetargument value | Set or unset the specified argument to value. |
ayt | Send an "are you there" sequence to the specified host. |
echo | Toggle between doing local echoing of entered characters and suppressing echoing of entered characters. |
eof | Send eof to the remote system. |
erase | Send a telnet erase character. |
escape | Send telnet escape character "^[". |
flushoutput | If telnet is in localchars mode and the flushoutput character is typed, a TELNET AO sequence (see send ao) is sent to the remote host. |
forw1, forw2 | When in LINEMODE, send partial lines to the remote system. |
interrupt | If in localchars mode, send the TELNET IP sequence. |
kill | Send a TELNET EL sequence if in LINEMODE. |
lnext | If in LINEMODE, this is taken to be the lnext character. |
quit | If in localchars mode, send the TELNET BRK sequence. |
reprint | If in LINEMODE, this is taken to be the reprint character. |
rlogin | Set the escape character. |
start | If TELNET TOGGLE-FLOW-CONTROL option has been enabled, this will be taken to be the terminal's start character. |
stop | If the TELNET TOGGLE-FLOW-CONTROL option has been enabled, this character is taken to be the terminal's stop character. |
susp | If in localchars mode or LINEMODE is enabled, send a TELNET SUSP sequence. |
tracefile | Specify file to which output caused by netdata or option tracing being TRUE will be written. |
worderase | If operating in LINEMODE or line-by-line-mode, this character is taken as the terminal's worderase character. |
? | Displays the legal set (unset) commands. |
slcstate | Set Local Characters to the specified state when TELNET LINEMODE option has been enabled. |
check | Verify the current settings for the current special characters. |
export | Switch to the local defaults for the special characters. |
import | Switch to the remote defaults for the special characters. |
? | Prints out help information for the slc command. |
status | Display current status of telnet. |
togglearguments... | Toggle the specified argument(s) between true and false. |
authdebug | Turns on debugging for the authentication code. |
autodecrypt | When TRUE, automatically enable encryption/ decryption. |
autologin | Attempt to use TELNET AUTHENTICATION to perform automatic authentication. |
autosync | If autosynch and localchars are both TRUE, then when either the intr or quit characters are typed, the resulting telnet sequence sent is followed by the TELNET SYNCH sequence. |
binary | Enable or disable the TELNET BINARY option on both input and output. |
inbinary | Enable or disable the TELNET BINARY option on input. |
outbinary | Enable or disable the TELNET BINARY option on output. |
crlf | If this is TRUE, then carriage returns will be sent as <CR><LF>. If this is FALSE, then carriage returns will be send as <CR><NUL>. |
crmod | Toggle carriage return mode. |
debug | Toggles socket level debugging. |
encdebug | Turns on debugging information for the encryption code. |
localchars | If this is TRUE, then the flush, interrupt, quit, erase, and kill characters set (hopefully) appropriate TELNET control sequences. |
options | Toggle the display of some internal telnet protocol processing. |
prettydump | When the netdata toggle is enabled, if prettydump is enabled the output from the netdata command will be formatted in a more user-readable format. |
skiprc | If true, do not read the .telnetrc file. |
termdata | Toggles the display of all terminal data. |
verbose_encrypt | When TRUE, display a message each time encryption is enabled or disabled. |
? | Displays the legal toggle commands. |
z | Suspend telnet. |
! [command] | Execute a single command in a subshell on the local system. |
? [command] | Display help information on the specified command. |
tftp
[host]
This program is an implementation of the trivial file transfer protocol(Tftp). Tftp is used to transfer files to and from a remote machine. This command is interactive, and the following commands apply:
Example: To transfer the binary file "interest" across the network using the tftp protocol and place it in the current directory, use
tftp
tftp> binary
tftp> connect fenris
tftp> get /usr/bin/interest
? command-name ... | Display help information. |
ascii | Transfer files in ASCII mode. |
binary | Transfer files in binary mode. |
connecthost-name [port] | Connect to the specified host (and, optionally, port) for file transfer. |
getfilename, getremotename localname, getfile1 file2 ... fileN | Retrieve a copy of the specified files and place it on the local host. |
modetransfer-mode | Set transfer mode. Allowable values are ASCII and binary. |
putfile, putlocalfile remotefile, putfile1 file2 ... fileN remote-directory | Transfer a copy of the specified file(s) from the local host to the remote host. |
quit | Exit tftp. |
rexmtretransmission-timeout | Specify the per-packet retransmission timeout (seconds). |
status | Show current status. |
timeouttotal-transmission-timeout | Specify the total transmission timeout, in seconds. |
trace | Toggle packet tracing. |
verbose | Toggle verbose mode. |