|CU(1)||General Commands Manual||CU(1)|
cu — serial
cu is used to connect to another system
over a serial link. In the era before modern networks, it was typically used
to connect to a modem in order to dial in to a remote host. It is now
frequently used for tasks such as attaching to the serial console of another
machine for administrative or debugging purposes.
The options are as follows:
cushould not allow the driver to block waiting for a carrier to be detected.
cuin restricted mode. This prevents all local filesystem operations (
~>) and command executions (
If host is given,
cu uses the
remote(5) database to
retrieve the dc
and br (baud
rate) capabilities for that host. The
ignores other capabilities found in that database.
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:
cuprompts for the name of a local file to transmit.
BREAKto the remote system.
cu(only available with job control).
0 <-> remote tty in 1 <-> remote tty out 2 <-> local tty stderr
cu 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
cu guards against multiple users
connecting to a remote system by opening modems and terminal lines with
cu utility exits 0 on success,
and >0 if an error occurs.
cu command appeared in
Version 7 AT&T UNIX. This version was
written for OpenBSD 5.4 by Nicholas Marriott.
|February 8, 2020||OpenBSD-6.7|