Personal computing discussed

Moderators: SecretSquirrel, notfred

Topic Author
Posts: 86
Joined: Tue Oct 24, 2006 9:04 pm

How do I exclude strings from .bash_history?

Sat Dec 01, 2007 10:56 pm

I could not find a way to do this after searching online-I need it to avoid logging passwd's when I initialize smbclient at boot.
Global Moderator
Posts: 2329
Joined: Wed Dec 26, 2001 7:00 pm

Sat Dec 01, 2007 11:20 pm

I believe what you're looking for is the HISTIGNORE environment variable.

Or if you don't want the bash history ever saved to disk, you can unset HISTFILE at the end of you bash config file.
just brew it!
Gold subscriber
Posts: 49985
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Sun Dec 02, 2007 1:08 am

Just a FYI... if you've got a reasonably modern kernel (with CIFS support), you should be able to mount the remote file system via your fstab instead, providing the password via a credentials file that is only accessible by root. I don't know exactly what you're trying to do, but in general that's a better all-around way of accessing the server, since it looks just like any other mounted filesystem.
Nostalgia isn't what it used to be.

Who is online

Users browsing this forum: No registered users and 1 guest