Linux terminals share alot in common with their primitive ancestors such as vt100 like consoles. These early devices is capable of sending sequences that signaled events outside of the normal flow of typed characters, such as escape, tab, linefeed...etc. Linux uses CTRL key to send out these out of band signals. This article summarises many of the commonly used control sequences that are used in all Linux terminals. CTRL-C This is the most commonly used sequence. In the bash shell, CTRL-C will terminate any currently running process and return you to the bash prompt. For example, if you accidentally run a command that does not stop, use CTRL-C to cancel the command. CTRL-D Many Unix commands read their input directly from the keyboard. An example is the WC command. WC counts the number of lines, words and characters that a user types in from the keyboard. So if you tpye WC at the command prompt, the command will wait for your input till you use CTRL-D to signal the end of transmission. CTRL-Z CTRL-Z means to suspend a program. For example, you are working with a command and you want to stop it temporary as it is taking too long. To do that, you can use CTRL-Z. You can later restore back the command using the fg command. CTRL-U If you have messed up a certain command and you want to start all over, instead of using backspace, you can use CTRL-U. CTRL-U resets the current line. CTRL-H Instead of using the backspace key,
Bernard Peh is a great passioner of web technologies and one of the co-founders of Sitecritic.net internet articles. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP work.