CU(1) BSD General Commands Manual CU(1)
cu -- call UNIX
cu [-ehot] [-a acu] [-l line] [-s speed | -speed] [phone-number]
The cu utility establishes a full-duplex connection to another machine, giving the appearance of being logged in directly on the remote CPU.
It goes without saying that you must have a login on the machine (or equivalent) to which you wish to connect.
The options are as follows:
-a acu Set the acu.
-e Use even parity. If both -e and -o are given, then no parity is used (the default).
-h Echo characters locally (half-duplex mode).
Specify the line to use. Either of the forms like cuau0 or /dev/cuau0 are permitted.
-o Use odd parity. If both -e and -o are given, then no parity is used (the default).
-s speed | -speed
Set the speed of the connection. The default is 9600.
-t Connect via a hard-wired connection to a host on a dial-up line.
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 ~.
Drop the connection and exit. Only the connection is dropped - the login session is not terminated.
Change directory to name (no argument implies change to home directory).
~! Escape to a shell (exiting the shell will return to cu).
~> Copy file from local to remote. The cu utility prompts for the name of a local file to transmit.
~< Copy file from remote to local. The cu utility 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
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 ~p command, 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 to cu:
cat 'from'; echo '' | tr '