cu [options] [destination] [command]Call up another Unix system or a terminal via a direct line or a modem. A non-Unix system can also be called.
-bnProcess lines using n-bit characters (7 or 8).
-cnameSearch UUCP's Devices file and select the local area network that matches name (this assumes connection to a system).
-CInstead of entering interactive mode, run the command from the command line with standard input and standard output connected to the remote system. Solaris only.
-dPrint diagnostics.
-eSend even-parity data to remote system.
-hEmulate local echo and support calls to other systems expecting terminals to use half duplex mode.
-HIgnore one hangup. Useful when calling a remote system that will disconnect and call you back with a login prompt. Solaris only.
-llineCommunicate on device named line (e.g., /dev/tty001).
-LUse the chat sequence specified in /etc/uucp/Systems. Solaris only.
-nPrompt user for a telephone number.
-oUse odd parity (opposite of -e).
-snSet transmission rate to n (e.g., 1200, 2400, 9600 bps). Default is Any.
-tDial an ASCII terminal that has auto-answer set.
| telno | The telephone number of the modem to connect to. |
| system | Call the system known to uucp (run uuname to list valid system names). |
| addr | An address specific to your local area network. |
cu runs as two processes: transmit and receive. Transmit reads from standard input and passes characters to the remote system; receive reads data from the remote system and passes lines to standard output. Lines that begin with a tilde (~) are treated as commands and not passed.
~.Terminate the conversation.
~!Escape to an interactive shell on the local system.
~!cmd ...Run command on local system (via sh -c).
~$cmd ... Run command locally; send output to remote system.
~%cdChange directory on the local system.
~%take file [target]Copy file from remote system to target on the local system. If target is omitted, file is used in both places. The remote system must be running Unix for this command to work. No checksumming of the transmitted data is provided.
~%put file [target]Copy file from the local system to target on the remote system. If target is omitted, file is used in both places. The remote system must be running Unix for this command to work. No checksumming of the transmitted data is provided.
~~ ...Use two tildes when you want to pass a line that begins with a tilde. This lets you issue commands to more than one system in a cu chain. For example, use ~~. to terminate the conversation on a second system cud to from the first.
~%bSend a BREAK sequence to the remote system.
~%dTurn debug mode on or off.
~tPrint termio structure for local terminal. (Intended for debugging.)
~lPrint termio structure for communication line. (Intended for debugging.)
~%ifcTurn on/off the DC3/DC1 XOFF/XON control protocol (characters ^S, ^Q) for the remainder of the session (formerly ~%nostop, which is still valid).
~%ofcSet output flow control either on or off.
~%divertAllow/prevent diversions not specified by ~%take.
~%oldAllow/prevent old-style syntax for diversions received.
Connect to terminal line /dev/ttya at 9600 baud:
cu -s9600 -l/dev/ttya
Connect to modem with phone number 555-9876:
cu 5559876
Connect to system named usenix:
cu usenix