Linux / UNIX Tech Support Forum
This is a discussion on Quit Bash Without Saving History within the Getting started tutorials forums, part of the Linux Getting Started category; Hello Nixcraft, I came across this command on the web and I thought I would share it with you all. ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
Also you can nuke history when you logout by adding the following to your ~/.bash_logout file:
Code:
# clear bash history /bin/rm -f $HOME/.bash_history # clear mysql history /bin/rm -f $HOME/.mysql_history
__________________
Vivek Gite Linux Evangelist |
|
||||
|
SOOO Sweet,
However if everyone uses root, this will nuke all history? In my situation we are currently all using root as our login. And I am sure our company is not alone with this setup In fact I am learning LDAP so we can all have individual logins for the root account. My senior admin and I are testing this now. Jaysunn |
|
||||
|
Share root account without a root password. sudo - Wikipedia, the free encyclopedia
|
|
||||
|
we can set the HISTSIZE=0 which will clear all your history(only tat terminial)not for other terminials..
and then revert back the Value to some 100 or what ever you want #HISTSIZE=100 Note for new babys:HISTSIZE is the variable where we can mention how many commands the history command should store. if HISTSIZE=10, your history command will just show last 10 executed commands.. |
| The Following User Says Thank You to kumarat9pm For This Useful Post: | ||
jerry (04-09-2009)
| ||
![]() |
| Tags |
| .bash_logout , .mysql_history , kill -9 $$ , kill command , rm command |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux kernel Do you have a strange power saving mode enabled? | Rahul.Kolan | Linux hardware | 3 | 08-09-2009 11:45 AM |
| bash history...suse 10.1 | grogf | Linux software | 4 | 30-10-2007 04:42 PM |
| How to save history of a hung terminal | ricc | Linux software | 2 | 20-06-2006 12:21 AM |
| Command history | ricc | Linux software | 1 | 26-04-2006 04:57 PM |
| want a script keep backup of all users history. | ricc | Shell scripting | 3 | 26-08-2005 12:30 AM |