Serial Lines

Termcap/terminfo file

AIX:

/usr/lib/terminfo

FreeBSD:

/etc/termcap (a link to /usr/share/misc/termcap)

Linux:

/etc/termcap and /usr/share/terminfo

HP-UX:

/usr/lib/terminfo (a link to /usr/share/lib/terminfo)

Solaris:

/etc/termcap and /usr/share/lib/terminfo

stty

stty options [value] ...

Modify serial line settings.

Options

n

Baud rate.

rows n

Lines on the screen.

columns n

Columns on the screen.

[-]echo

Echo/don’t echo typed characters on the screen.

erase c

Delete the previous character.

kill c

Erase the entire command line.

intr c

Interrupt the foreground command.

eof c

End-of-file signal.

susp c

Suspend the foreground command.

lnext c

Interpret the next character literally (used to insert control characters into the command line).

werase c

Erase the previous word.

rprnt c

Reprint the pending command line.

stop c

Pause terminal input and output.

start c

Restart a paused terminal.

flush c

Discard all pending (undisplayed) output.

quit c

Kill the foreground command and dump core.

oddp

Enable odd parity.

evenp

Enable even parity.

-parity

No parity is generated or detected.

cstopb

Use two stop bits (-cstopb means one stop bit).

clocal

Use a hard carrier (-clocal means soft).

sane

Reset many options to reasonable settings.

Serial Line Configuration Files

/etc/ttys (FreeBSD)

port command type [flags]

port

Special file in /dev that communicates with this serial line.

command

getty command init should ...

Get Essential System Administration Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.