History
The history mechanism, a feature adapted from the C Shell, maintains a list of recently issued command lines, also called events, providing a shorthand way for reexecuting any of the events in the list. This mechanism also enables you to execute variations of previous commands and to reuse arguments from them. You can replicate complicated commands and arguments that you used earlier in this login session or in a previous one and enter a series of commands that differ from one another in minor ways. The history list is also useful as a record of what you have done. It can be helpful when you have made a mistake and are not sure what you did or when you want to keep a record of a procedure that involved a series of commands. The history ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access