CU(1) | General Commands Manual | CU(1) |
cu
— serial
terminal emulator
cu |
[-dr ] [-E
escape_char] [-l
line] [-s
speed |
- speed] |
cu |
[host] |
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:
-d
cu
should not allow the driver to block waiting for a carrier to be
detected.-E
escape_char-l
line-r
cu
in restricted mode. This prevents all
local filesystem operations (~R
,
~X
, and ~>
) and command
executions (~C
and
~$
).-s
speed |
-
speedIf host is given,
cu
uses the remote(5) database to
retrieve the dc
(directly connected),
dv (device)
and br (baud
rate) capabilities for that host. The cu
utility
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:
~^D
or ~.
~>
cu
prompts for the
name of a local file to transmit.~$
~#
BREAK
to the remote system.~^Z
cu
(only available with job control).~C
~D
~R
~S
~X
~?
When 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
machine.
cu
guards against multiple users
connecting to a remote system by opening modems and terminal lines with
exclusive access.
The cu
utility exits 0 on success,
and >0 if an error occurs.
The cu
command appeared in
Version 7 AT&T UNIX. This version was
written for OpenBSD 5.4 by Nicholas Marriott.
December 12, 2020 | Debian |