Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How remove command history

0 views
Skip to first unread message

Evgeniy Petrov

unread,
Jun 10, 2004, 5:04:34 AM6/10/04
to
If I press button "up" I can see all comand which I write before.
How can I clear this command history under suse linux 8.0?


VesaA.

unread,
Jun 10, 2004, 5:11:34 AM6/10/04
to
> If I press button "up" I can see all comand which I write before.
> How can I clear this command history under suse linux 8.0

Delete file .bash_history under your home directory.

VA

Wim Cossement

unread,
Jun 10, 2004, 5:13:39 AM6/10/04
to
history -c

Chris F.A. Johnson

unread,
Jun 10, 2004, 9:58:11 AM6/10/04
to
On 2004-06-10, Evgeniy Petrov wrote:
>
If you feel a post belongs in more than one newsgroup, please
crosspost (i.e., put all the groups on the Newsgroups: line in a
single message), do not multipost.

> If I press button "up" I can see all comand which I write before.
> How can I clear this command history under suse linux 8.0?

Do you want to clear it permanently, or only one instance of the
shell?

To clear it in the current shell, use "history -c".

To remove it permenently, delete $HOME/.bash_history.

--
Chris F.A. Johnson http://cfaj.freeshell.org
=================================================================
Everything in moderation -- including moderation

Karsten Kruse

unread,
Jun 10, 2004, 10:04:04 AM6/10/04
to

On Thu, 10 Jun 2004, Evgeniy Petrov wrote:

> If I press button "up" I can see all comand which I write before. How
> can I clear this command history under suse linux 8.0?

If you don't want a history at all:
ln -sf /dev/null ~/.bash_history

To reenable the history:
rm ~/.bash_history

Karsten

--
Homepage, Mac68k, A/UX-Links und Shorties: www.tecneeq.de
() Linux/NetBSD-Anleitungen, Forum und Chat: www.newbie-net.de
<\/>
_/\_ Slowly and surely the unix crept up on the Nintendo user ...

LucM

unread,
Jun 10, 2004, 3:19:07 PM6/10/04
to
Karsten Kruse wrote:
>
> On Thu, 10 Jun 2004, Evgeniy Petrov wrote:
>
>> If I press button "up" I can see all comand which I write before. How
>> can I clear this command history under suse linux 8.0?
>
>
> If you don't want a history at all:
> ln -sf /dev/null ~/.bash_history
>
> To reenable the history:
> rm ~/.bash_history
>
> Karsten
>

Instead you should set ths HISTFILE variable to /dev/null. Or set
HISTSIZE to 1.


--
LucM

Visit your friends
> www.gnu.org
> www.greenpeace.org

moma

unread,
Jun 10, 2004, 4:52:40 PM6/10/04
to
Evgeniy Petrov wrote:
> If I press button "up" I can see all comand which I write before.
> How can I clear this command history under suse linux 8.0?
>
>

Clear up command history
$ history -c


((
$ history
10 ls
20 cd ~

$ !10
))

// moma
http://www.futuredesktop.org/how2burn.html


Karsten Kruse

unread,
Jun 10, 2004, 8:47:15 PM6/10/04
to

On Thu, 10 Jun 2004, LucM wrote:

> > If you don't want a history at all:
> > ln -sf /dev/null ~/.bash_history

> Instead you should set ths HISTFILE variable to /dev/null. Or set
> HISTSIZE to 1.

I agree ;).

mo...@example.net

unread,
Jun 11, 2004, 12:58:50 AM6/11/04
to
This message was cancelled from within Mozilla.
0 new messages