Viewing session history in the bash shell

Another cool feature of the bash shell is that it lets you easily reuse commands from your session history, which shows you the list of commands you've used during a session or in previous sessions (Code Listing 3.9). Viewing history is handy for reviewing your UNIX session, using previous commands again (rather than retyping them), and modifying (rather than completely retyping) complex commands.

To view session history in the bash shell:

1.
Use the shell for a little while, changing directories, redirecting output, or doing other tasks. Take your time. We'll wait.
2.
Press one time. Note that the last ...

Get Unix: Visual QuickStart Guide 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.