LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2003, 09:23 AM   #1
linj
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Unhappy bash_history





I know how to clear your bash_history but I do not know how to stop or clear your current cache. Basically I do not want to save anything to the bash_history on exit. Does anyone know how to do this?
Thanx

 
Old 08-08-2003, 09:35 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
making it readonly seems to work
 
Old 08-08-2003, 09:54 AM   #3
linj
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Setting it to read only would work for me... If I only knew how.
I am but a seedling...
Can you help me out with the context?

Thanks
 
Old 08-08-2003, 10:02 AM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
in your home directory:

chmod 400 .bash_history
 
Old 08-08-2003, 11:02 AM   #5
linj
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I tried chmod 400 as you sugested but it still saves the bash_history on exit. Any ideas?

Thanks for the help...
 
Old 08-08-2003, 11:11 AM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
umm, no cos it doesnt save it for me, im afraid you might have to dig through the manual

info bash
 
Old 08-08-2003, 11:13 AM   #7
linj
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I got it...
Using "unset HISTFILE" works as discussed in another thread:
Question about ".bash_history"

Thanks again for the assistance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bash_history question stakhous Linux - Newbie 1 05-24-2005 07:24 PM
.bash_history t3gah Linux - Software 2 05-05-2005 04:45 AM
.bash_history gone togeno Linux - Security 3 06-30-2003 08:10 AM
.bash_history question iceman47 Linux - Security 4 06-06-2003 05:29 PM
How does .bash_history works? zeky Linux - General 2 10-15-2002 03:48 PM


All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration