TIP(1)
π TIP(1) β connect to a remote system π
General Commands Manual, bestie. This is the tip page.
πΈ NAME πΈ
tip β connect to a remote system. That's the whole name, no cap.
β¨ SYNOPSIS β¨
tip [-nv] [-speed] [system-name]
π¦ DESCRIPTION π¦
Okay so tip establishes a full-duplex connection to another machine, giving the appearance of being logged in directly on the remote CPU. And yeah, obviously you need a login on the machine (or equivalent) to which you wish to connect.
The options are as follows:
-nβ No escape (disable tilde).-vβ Set verbose mode.
If speed is specified, it will override any baudrate specified in the system description being used.
If neither speed nor system-name are specified, system-name will be set to the value of the HOST environment variable.
If speed is specified but system-name is not, system-name will be set to a value of tip with speed appended. For example, tip -1200 will set system-name to tip1200.
Typed characters are normally transmitted directly to the remote machine (which does the echoing as well). A tilde (~) appearing as the first character of a line is an escape signal; the following are recognized:
~^Dor~.β Drop the connection and exit. Only the connection is dropped β the login session is not terminated.~c [name]β Change directory to name (no argument implies change to home directory).~!β Escape to a shell (exiting the shell will return totip).~>β Copy file from local to remote. Thetiputility prompts for the name of a local file to transmit.~<β Copy file from remote to local. Thetiputility prompts first for the name of the file to be sent, then for a command to be executed on the remote machine.~p from [to]β Send a file to a remote Unix host. This command causes the remote Unix system to run the following command string, sending it the from file:
stty -echo; cat > 'to'; stty echo
If the to file is not specified, the from file name is used. This command is actually a Unix specific version of the ~> command.
~t from [to]β Take a file from a remote Unix host. As in the~pcommand, the to file defaults to the from file name if it is not specified. The remote host executes the following command string to send the file totip:
cat 'from'; echo '' | tr '\012' '\01'
~|β Pipe the output from a remote command to a local Unix process. The command string sent to the local Unix system is processed by the shell.~$β Pipe the output from a local Unix process to the remote host. The command string sent to the local Unix system is processed by the shell.~Cβ Fork a child process on the local system to perform special protocols such as XMODEM. The child program will be run with the following arrangement of file descriptors:
0 <-> remote tty in
1 <-> remote tty out
2 <-> local tty stderr
~#β Send a BREAK to the remote system. For systems which do not support the necessaryioctl()call, the break is simulated by a sequence of line speed changes and DEL characters.~sβ Set a variable (see the discussion below).~vβ List all variables and their values (if set).~^Zβ Stoptip(only available with job control).~^Yβ Stop only the βlocal sideβ oftip(only available with job control); the βremote sideβ oftip, the side that displays output from the remote host, is left running.~?β Get a summary of the tilde escapes.
To find the system description, and thus the operating characteristics of system-name, tip searches for a system description with a name identical to system-name. The search order is as follows:
- If the environment variable
REMOTEdoes not start with a/it is assumed to be a system description, and is considered first. - If the environment variable
REMOTEbegins with a/it is assumed to be a path to aremote(5)database, and the specified database is searched. - The default
remote(5)database,/etc/remote, is searched.
See remote(5) for full documentation on system descriptions.
The br capability is used in system descriptions to specify the baud rate with which to establish a connection. If the value specified is not suitable, the baud rate to be used may be given on the command line, e.g. tip -300 mds.
When tip establishes a connection, it sends out the connection message specified in the cm capability of the system description being used.
When tip prompts for an argument, for example during setup of a file transfer, the line typed may be edited with the standard erase and kill characters. A null line in response to a prompt, or an interrupt, will abort the dialogue and return the user to the remote machine.
The tip utility guards against multiple users connecting to a remote system by opening modems and terminal lines with exclusive access, and by honoring the locking protocol used by uucico(8) (ports/net/freebsd-uucp).
During file transfers tip provides a running count of the number of lines transferred. When using the ~> and ~< commands, the eofread and eofwrite variables are used to recognize end-of-file when reading, and specify end-of-file when writing (see below). File transfers normally depend on hardwareflow or tandem mode for flow control. If the remote system does not support hardwareflow or tandem mode, echocheck may be set to indicate that tip should synchronize with the remote system on the echo of each transmitted character.
When tip must dial a phone number to connect to a system, it will print various messages indicating its actions. The tip utility supports a variety of auto-call units and modems with the at capability in system descriptions.
Support for Ventel 212+ (ventel), Hayes AT-style (hayes), USRobotics Courier (courier), Telebit T3000 (t3000) and Racal-Vadic 831 (vadic) units is enabled by default.
Support for Bizcomp 1031[fw] (biz31[fw]), Bizcomp 1022[fw] (biz22[fw]), DEC DF0[23]-AC (df0[23]), DEC DN-11 (dn11) and Racal-Vadic 3451 (v3451) units can be added by recompiling tip with the appropriate defines.
Note that if support for both the Racal-Vadic 831 and 3451 is enabled, they are referred to as the v831 and v3451, respectively. If only one of the two is supported, it is referred to as vadic.
π§ Variables π§
The tip utility maintains a set of variables which control its operation. Some of these variables are read-only to normal users (root is allowed to change anything of interest). Variables may be displayed and set through the ~s escape. The syntax for variables is patterned after vi(1) and Mail(1). Supplying all as an argument to the set command displays all variables readable by the user. Alternatively, the user may request display of a particular variable by attaching a ? to the end. For example, escape? displays the current escape character.
Variables are numeric, string, character, or boolean values. Boolean variables are set merely by specifying their name; they may be reset by prepending a ! to the name. Other variable types are set by concatenating an = and the value. The entire assignment must not have any blanks in it. A single set command may be used to interrogate as well as set a number of variables. Variables may be initialized at run time by placing set commands (without the ~s prefix) in the initialization file ~/.tiprc; the -v option additionally causes tip to display the sets as they are made. Certain common variables have abbreviations. The following is a list of common variables, their abbreviations, and their default values:
baudrateβ (num) The baud rate at which the connection was established; abbreviatedba.beautifyβ (bool) Discard unprintable characters when a session is being scripted; abbreviatedbe.dialtimeoutβ (num) When dialing a phone number, the time (in seconds) to wait for a connection to be established; abbreviateddial.echocheckβ (bool) Synchronize with the remote host during file transfer by waiting for the echo of the last character transmitted; default is off.eofreadβ (str) The set of characters which signify an end-of-transmission during a~<file transfer command; abbreviatedeofr.eofwriteβ (str) The string sent to indicate end-of-transmission during a~>file transfer command; abbreviatedeofw.eolβ (str) The set of characters which indicate an end-of-line. Thetiputility will recognize escape characters only after an end-of-line.escapeβ (char) The command prefix (escape) character; abbreviatedes; default value is~.exceptionsβ (str) The set of characters which should not be discarded due to the beautification switch; abbreviatedex; default value is\t\n\f\b.forceβ (char) The character used to force literal data transmission; abbreviatedfo; default value is^P.framesizeβ (num) The amount of data (in bytes) to buffer between file system writes when receiving files; abbreviatedfr.hardwareflowβ (bool) Whether hardware flow control (CRTSCTS) is enabled for the connection; abbreviatedhf; default value is off.hostβ (str) The name of the host to which you are connected; abbreviatedho.linediscβ (num) The line discipline to use; abbreviatedld.promptβ (char) The character which indicates an end-of-line on the remote host; abbreviatedpr; default value is\n. This value is used to synchronize during data transfers. The count of lines transferred during a file transfer command is based on receipt of this character.raiseβ (bool) Upper case mapping mode; abbreviatedra; default value is off. When this mode is enabled, all lowercase letters will be mapped to uppercase bytipfor transmission to the remote machine.raisecharβ (char) The input character used to toggle uppercase mapping mode; abbreviatedrc; not set by default.recordβ (str) The name of the file in which a session script is recorded; abbreviatedrec; default value istip.record.script(bool) β session scripting mode, akasc, and it's off by default. When it'strue,tiprecords everything the remote machine transmits into the script record file you picked inrecord. And if thebeautifyswitch is on too? Only printable ASCII makes it into the script file (that's the characters between040and0177, iykyk). Also the variableexceptionsis what you use to flag characters that are the exception to the normal beautification rules. πtabexpand(bool) β expand tabs to spaces during file transfers, abbreviatedtab, and the default isfalse. Every tab gets expanded into8spaces. no cap. β¨tandem(bool) β use XON/XOFF flow control to throttle data coming from the remote host, abbreviatedta. The default istrue... unless thentcapability has been specified in/etc/remote, in which case the default flips tofalse. sneaky but true π«Άverbose(bool) β verbose mode, abbreviatedverb, default istrue. When it's on,tipprints messages while dialing, shows the current number of lines transferred during file transfer operations, and more. it's giving main character energy π
β¨ ENVIRONMENT β¨
HOMEβ the home directory to use for the~ccommand. πHOSTβ the default value forsystem-nameif none is specified via the command line.PHONESβ a path to aphones(5)database.REMOTEβ a system description, or an absolute path to aremote(5)system description database.SHELLβ the name of the shell to use for the~!command; the default value is"/bin/sh". π
π FILES π
~/.tiprcβ initialization filetip.recordβ record file/etc/phonesβ defaultphones(5)file/etc/remoteβ globalremote(5)database/var/log/aculogβ line access log/var/spool/lock/LCK..*β lock file to avoid conflicts withuucp(1)(ports/net/freebsd-uucp)
πΈ EXAMPLES πΈ
Connect to the first USB serial port at the speed of 115200 baud:
tip ucom1 -115200
literally that's it. iconic. π¦
π₯ SEE ALSO π₯
π HISTORY π
The tip command appeared in 4.2BSD. a whole legend fr fr π
π BUGS π
The full set of variables is undocumented and should, probably, be pared down. yeah... it's a lot. nobody's perfect ππ
okay bestie that's the whole page!! this beauty comes from the Debian folks, dated April 28, 2018, and it's the TIP(1) manual page. go forth and dial something. πβ¨π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1980, 1990, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms