Skip to content

Uroš Vovk

Uroš Vovk home page

Categories

  • Linux Stuff
  • Network Stuff
  • Windows Stuff

Tag: disable

Temporary Disabling Bash History

Let’s assume that you want execute some command that you don’t want in your history (e.g. commands with  passwords), but you don’t want to clear your entire history because of these.

all you need to do is to run the following command:

unset HISTFILE

or

HISTFILE=/dev/null

this will disable history for your current session.

Posted on October 28, 2013Categories Linux StuffTags bash, bash history, command line, commands, disable
Proudly powered by WordPress

Uroš Vovk Cookies Policy

My Website uses cookies to improve your experience. Please visit my Cookies page for more information about cookies and how I use them.

Close