Quit Bash Shell Without Saving Bash History (5 Methods) - Comment Page: 1

Sometimes it is very useful to delete / remove Bash history partially or completely when log out. Here is my favourite methods howto log out / quit / exit Bash shell without saving Bash history. Remove Only Current Session Bash History and Leave Older History Untouched [inttf_post_ad1] 1. Quit Bash Shell Without Saving History: Unset HISTFILE unset HISTFILE && exit 2. Quit Bash Shell Without Saving History: Kill Console kill -9 $$ Remove/Delete Bash History Completely [inttf_post_ad2] 3. Quit Bash Shell Without Saving History: Clear History Option history -c && exit 4. Quit Bash Shell Without Saving History: Set HISTSIZE to 0...

3 comments on “Quit Bash Shell Without Saving Bash History (5 Methods) - Comment Page: 1

    1. First method clears all history

      Reply
      • Hi Eee,

        Yes you are right, it should be in Remove/Delete Bash History Completely section. My apologies that it was wrong section.

        Reply

Leave a Reply

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

Close