Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

10
  • 20
    will take effect after relaunching (closing and re-opening) the terminal Commented Dec 11, 2014 at 10:13
  • 9
    If you do this with vim you may find your deletion history in ~/.viminfo so be sure to remove that too!
    – waltwood
    Commented Jul 22, 2015 at 22:39
  • 5
    sometimes it's kept in memory and any manual editing wont be persisted after next login..
    – superhero
    Commented Sep 15, 2016 at 8:39
  • 4
    @FizerKhan that wont help the fact that it's kept in memory. It's the history file that is kept in memory sometimes, so even if you edit the file it wont take effect..
    – superhero
    Commented Nov 29, 2016 at 9:47
  • 7
    @FizerKhan I mean that changes made in .bash_history can be overwritten by what is kept in memory. I found this solution helpful: superuser.com/a/384383/253543
    – superhero
    Commented Nov 29, 2016 at 10:42