LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: CLI Magic: Using command history in the bash shell (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-cli-magic-using-command-history-in-the-bash-shell-460615/)

LXer 07-03-2006 12:54 PM

LXer: CLI Magic: Using command history in the bash shell
 
Published at LXer:

The Bourne Again Shell's history mechanism, a feature adapted from the C Shell, maintains a list of recently issued command lines, also called events, providing a quick way to reexecute 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 also serves as a record of what you have done. It can prove 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.

Read More...


All times are GMT -5. The time now is 01:16 AM.