Using Shell Features
Bash includes several features that make using it much easier. Some have already been described. Many others are beyond the scope of this book. Two, however, deserve attention—even in a brief introduction to the command line: command completion and command history.
Using Command Completion
Command completion is the hero of everybody who hates typing: it’s a way to enter a long command or filename with a minimal number of keystrokes. To use command completion, you type part of a command or filename and then press the Tab key. If only one command on the path completes the command, Bash fills in the rest—and likewise when using command completion to refer to files. To illustrate the use of command completion, you can try it out with a few commands:
- Launch a shell.
- Type
wh
followed by pressing the Tab key. The computer will probably beep or sound a tone. This...