February 2004
Beginner
200 pages
5h 40m
English
You can recall previous commands you’ve run—that is, the shell’s history—and then edit and re-execute them. Some useful history-related commands are listed below.
Command | Meaning | |
| Print your history | |
| Print the most recent | |
| Clear (delete) your history | |
| Previous command | |
| Command number | |
| The command you typed | |
| The last parameter from the previous command; great for checking that files are present before removing them: $ ls a* $ rm !$ | |
!* | All parameters from the previous command |