Yuval's Homepage

Home ยป Private Mode in Bash

Navigation

  • Contact
  • My Blog
  • Tech Stuff
    • Easy Password Maker
  • Projects
  • Non-Tech Stuff

Easy Password Maker

Important! Use at your own Risk! Read more on how it works.

Add new comment

Private Mode in Bash

yuval —Mon, 12/06/2010 - 00:00

  • Security & Privacy

OK I'm not sure this is perfect, but it seems to work. please report security holes.

I wanted my bash shell to have incognito\privacy mode, like my browser.
So I added this line to ~/.bash_aliases

alias privatemode='export HISTFILE='

Then every time you execute the privatemode command, bash history goes no-where. I've tested it and it seems to work.. but you never know with these hack... so use on your own risk.

  • yuval's blog
  • Add new comment
The content of this field is kept private and will not be shown publicly.

More information about text formats

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.