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/

May 2025

S M T W T F S
    123
45678910
11121314151617
181920212223 24
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 29th, 2025 09:32 pm
Powered by Dreamwidth Studios