Backup your bash history to a file 28 marzo 2015 Admin Linux, Ubuntu (0) Backup your bash history to a file Flush the history to the file history -w historybackup.txt where historybackup.txt is the file name where to save your history.