Difference between revisions of "Bash history"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 20: Line 20:
 
== Other terms  ==
 
== Other terms  ==
 
* <code>[[set]] -o history</code>
 
* <code>[[set]] -o history</code>
* <code>docker history</code>
+
* <code>[[docker history]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 06:27, 26 April 2020

Bash command history feature allows to recall, edit and rerun previous commands. Also allows commands to be saved using the history -a command[1][2].

Variables to control Bash History:

Usage

  • Basic example:
export PROMPT_COMMAND='history -a'

Activities

  1. Install https://github.com/ohmybash bash customization
  2. Review output from history command

Other terms

See also

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Source: https://en.wikiversity.org/wiki/Bash_programming/Bash_History

Advertising: