oio11: (Default)
[personal profile] oio11
linux - Retrieving command line history - Stack Overflow

the history filename was stored in variable : $HISTFILE

echo $HISTFILE

will give you the right file.

Usually in bash it would be ~/.bash_history, however it could be changed by configuration.
also notice that sometimes the very last commands is not stored in that file. running

history -a

will persistent.

history -r
will clean those command not yet written to the fil

http://stackoverflow.com/questions/8561983/retrieving-command-line-history

Bash History: Display Date And Time For Each Command – nixCraft

http://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/

October 2025

S M T W T F S
   1234
567891011
12131415161718
19202122 232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 1st, 2026 07:06 pm
Powered by Dreamwidth Studios