How to save terminal history manually?

July 9, 2021 . 1 MIN READ

To save bash history manually to a file:

history -w ~/history.txt

vim ~/history.txt

It exports the history to a file called history.txt. You can then view it using your favorite editor.

http://askubuntu.com/questions/261407/how-to-save-terminal-history-manually

Leave a Reply

Your email address will not be published. Required fields are marked *