The problem with drag's command is that normally your history is saved to that file on logout, so while that will clear out that file when you type exit it'll be repopulated again. Before you logout you can set HISTFILE to either nothing via the bash 'unset' command or set it to /dev/null. And for bash the file is called .bash_history, not just .history, It probably varies from shell to shell.