Command Completion and History Editing

Now that you have seen some of the basic commands available at the command line, let’s examine a few of the advanced features of the more modern shells.

If you’re not sure whether bash (or any program) is installed on the system, you can easily figure it out by taking advantage of the built-in command-completion features of tcsh, bash, and other feature-rich shells. Type enough of the command name for it to be unique—the first two or three letters, just to see how this works—and then press Tab. If you’ve entered enough of the program name for it to be uniquely determinable, the rest of the command will complete itself.

If you haven’t specified enough of the program name for the shell to figure out what you ...

Get FreeBSD6 Unleashed 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.