Re: How to clear the command history in Red Hat Linux 8
On 30 Mar 2006 01:28:43 -0800, "Pandi K" <k.pandi.k@xxxxxxxxx> wrote:
How to clear the command history in Red Hat Linux 8
if your shell is bash and has:
.bash_logout and .bash_history
How about this as the last entry in .bash_logout
echo "rm ${HOME}/.bash_history" | at now +10 seconds
If you decide to use this then please test it first as i will not be
held responible if it clobbers someone elses .bash_history. I don't
know if $HOME is set or not, or even if the rest of the command works.
Good rm-ing
--
Benway
.
Relevant Pages
- Re: Is it possible to have temporary memory files?
... I guess the shell keeps a counter for these temporary file ... versions of bash, the Bourne shell and ksh), that will be the ... fail if there already was a dir entry by that name. ... systems don't have that flag. ... (comp.unix.shell) - [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.30)
... This is the Bash FAQ, version 3.30, for Bash version 3.0. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ... (comp.unix.questions) - [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.25)
... This is the Bash FAQ, version 3.25, for Bash version 2.05b. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ... (comp.unix.questions) - [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.26)
... This is the Bash FAQ, version 3.26, for Bash version 2.05b. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ... (comp.unix.questions) - [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.25)
... This is the Bash FAQ, version 3.25, for Bash version 2.05b. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ... (comp.unix.questions) |
|