Difference between revisions of "History -a"

From wikieduonline
Jump to navigation Jump to search
(Redirected page to History --help)
Tag: New redirect
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
#redirect [[history --help]]
+
{{lc}}
 +
 
 +
-a append history lines from this session to the [[history file]]
 +
 
 +
history -a; ls -al [[~/.bash_history]]
 +
 
 +
 
 +
Save every executed command to: <code>[[~/.bash_history]]</code>
 +
[[export]] [[PROMPT_COMMAND]]='[[history]] -a'
 +
 
 +
== Related ==
 +
[[history -c]]
 +
[[history -r]]
 +
 
 +
== See also ==
 +
* {{history}}
 +
 
 +
[[Category:IT]]

Latest revision as of 14:30, 25 January 2024

-a	append history lines from this session to the history file
history -a; ls -al ~/.bash_history


Save every executed command to: ~/.bash_history

export PROMPT_COMMAND='history -a'

Related[edit]

history -c
history -r

See also[edit]

Advertising: