LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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, 08:35 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
making it readonly seems to work
 
Old 08-08-2003, 08: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, 09:02 AM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
in your home directory:

chmod 400 .bash_history
 
Old 08-08-2003, 10: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, 10:11 AM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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, 10: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



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 06:24 PM
.bash_history t3gah Linux - Software 2 05-05-2005 03:45 AM
.bash_history gone togeno Linux - Security 3 06-30-2003 07:10 AM
.bash_history question iceman47 Linux - Security 4 06-06-2003 04:29 PM
How does .bash_history works? zeky Linux - General 2 10-15-2002 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 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
Open Source Consulting | Domain Registration