Managing Terminals Flashcards
Bash shell, and terminal it runs on, are ______ ________ used by experianced Linux users.
primary tools.
When terminals display info, they usually display…?
one byte at a time.
When computers are handling human readable text, the characters are usually…?
Encoded as an integer byte value using the ASCII format. (One byte can encode up to 256 different values, only a small number of these (about 100) are used for text characters and punctuation. The others are used to encode control sequence and other special conditions.)
The _____ command can restore a terminal to sane behavior.
reset. (Usually, when you’d like to use the command, you won’t even be able to see yourself type it. However, if at an unreadable bash prompt, blindly typing reset and followed by the RETURN key will usually restore the terminal to sane behavior.)
Linux terminals share a lot in common with their primitive ancestors, teletypes and “dumb” or vt100-like consoles. These early devices had mechanisms for sending “out of band” signals, or sequences that signaled some event outside of the normal flow of type characters, such as a backspace, a linefeed, an audible bell, or an end of transmission. Linux terminals, like their predecessors, use the _____ key to send these “out of band” signals.
CTRL.
CTRL+C (SIGNT)
Abnormal Interrupt - terminate the foreground process.
CTRL+D (EOT)
Normal signaling of the end of input.
CTRL+G (BEL)
Sound an audible terminal bell.
CTRL+H (BS)
Backspace - erase the previous character
CTRL+J (LF)
Line feed - alternative for the RETURN key
CTRL+L (FF)
Form feed - causes bash to clear screen, and other screen based programs to “refresh” the current screen.
CTRL+Q
Thaw the terminal display (see CTRL+S)
CTRL+S
Freeze the terminal display (thaw with CTRL+Q)
CTRL+U (NAK)
Erase current line
CTRL+Z (SIGSTOP)
Suspend the foreground process.
CTRL+C is probably the most useful of the above sequences, coming to the rescue whenever a user is felling “JUST MAKE IT STOP!” When using the bash shell, typing CTRL+C will….?
Terminate the currently running process, and return you to the bash prompt.
The /dev/zero device node is a pseudo device that, when read…?
returns an infinite number of (binary) zeros.