| Author |
remove command history
|
|
| Evgeniy Petrov 2004-06-10, 7:50 am |
| If I press button "up" I can see all comand which I write before.
How I can clear this command history under suse linux 8.0?
| |
| joe durusau 2004-06-10, 5:09 pm |
|
Evgeniy Petrov wrote:
> If I press button "up" I can see all comand which I write before.
> How I can clear this command history under suse linux 8.0?
What shell. You are looking at a shell feature, not an OS feature.
Speaking only for myself,
Joe Durusau
| |
| Chris F.A. Johnson 2004-06-10, 5:09 pm |
| On 2004-06-10, Evgeniy Petrov wrote:
> If I press button "up" I can see all comand which I write before.
> How I can clear this command history under suse linux 8.0?
Please don't multi-post.
This has been answered in the Linux group you posted to.
--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
========================================
===========================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
| |
| Michael Vilain 2004-06-10, 5:09 pm |
| In article <40C850FB.37942612@lmco.com>,
joe durusau <joe.durusau@lmco.com> wrote:
> Evgeniy Petrov wrote:
>
>
> What shell. You are looking at a shell feature, not an OS feature.
Since he's on Linux, I'd guess bash. That's all they seem to know about
most of the time.
Evgeniy, try reading the bash man page. Look for paragraphs on command
history. Also notice if you have a ~/.bash_history file. That contains
commands saved from old sessions.
Trying to cover your tracks???
--
DeeDee, don't press that button! DeeDee! NO! Dee...
| |
| Evgeniy Petrov 2004-06-11, 5:35 pm |
|
>
> What shell. You are looking at a shell feature, not an OS feature.
GNU bash, version 2.05.0(1)-release (i386-suse-linux)
Copyright 2000 Free Software Foundation, Inc.
| |
| Evgeniy Petrov 2004-06-11, 5:35 pm |
| > > > If I press button "up" I can see all comand which I write before.
>
> Since he's on Linux, I'd guess bash. That's all they seem to know about
> most of the time.
>
> Evgeniy, try reading the bash man page. Look for paragraphs on command
> history. Also notice if you have a ~/.bash_history file. That contains
> commands saved from old sessions.
>
> Trying to cover your tracks???
No. I have a problem with another administrator. He is learning unix. For
this he repeat all my comands step by step. So I think sytem will crach
soon. I can't remove his right becouse there are a lot of political
problems.
I have two files in /home/user/ directory .I guess file .bash_history is
very old for this.
But if I clear file .kshrc_history this file is restoring automatically. So
right now I havn't idea how clear command history.
11250 Jun 11 14:04 .kshrc_history
Jul 23 2003 .bash_history
| |
| Dave Hinz 2004-06-11, 5:35 pm |
| On Fri, 11 Jun 2004 15:24:44 +0400, Evgeniy Petrov <evg@mail.wurth.ru> wrote:
>
> I have two files in /home/user/ directory .I guess file .bash_history is
> very old for this.
> But if I clear file .kshrc_history this file is restoring automatically. So
> right now I havn't idea how clear command history.
> 11250 Jun 11 14:04 .kshrc_history
Brute force and ugly, but could you symbolically link it to /dev/null?
| |
| Chris F.A. Johnson 2004-06-11, 5:35 pm |
| On 2004-06-11, Evgeniy Petrov wrote:
>
>
> GNU bash, version 2.05.0(1)-release (i386-suse-linux)
In your .bashrc and/or .bash_profile file:
unset HISTFILE
Your history will then not be saved; you will only have command
history from the current session.
--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
========================================
===========================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
|
|
|
|