Or this way:
cp /dev/null ~/.bash_history
-Steve
-Original Message-
From: Scott Harrison [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 10:39 AM
To: [EMAIL PROTECTED]
Subject: Re: history command
> Learning vi is a good goal, but it is overkill for this task.
>
Or simply:> .bash_history
<>
-- Original Message ---
From: Scott Harrison <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Thu, 2 Jan 2003 11:39:10 -0500
Subject: Re: history command
> > Learning vi is a good goal, but it is overkill for this task.
>
DON'T remove the .bash_profile file :-) I've done that a few times by
accident, because I was concentrating so hard on not removing it,
luckily I could just make a copy of another user's .bash_profile :-)
On Thu, 2003-01-02 at 02:00, Wim wrote:
>
>
> Patrick Law wrote:
>
> > Hi guys, Happy Ne
any site or reference for vi?
> Thanks a lot.
>
> -Patrick
>
>
> -Original Message-
> From: Wim [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 02, 2003 6:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: history command
>
>
>
> Patr
> Learning vi is a good goal, but it is overkill for this task.
>
> You don't need to use vi if you are just trying to clear the file.
> 'echo > .bash_history'
> will leave you with an empty file without opening a text editor.
Actually, to be empty, the shell command should be:
echo -n > .bash_hi
What browser are you using?
doc
On Thu, 2003-01-02 at 04:56, Patrick Law wrote:
> Hi guys, Happy New Year,
> How do I remove the entries in command history?
> Thanks
> -Patrick
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mai
On Thu, Jan 02, 2003 at 05:56:18PM +0800, Patrick Law wrote:
> How do I remove the entries in command history?
history -c
man bash for more information.
.../Ed
--
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
Member #1, Red Hat Community Ambassador Program
--
redhat-list m
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thursday 02 January 2003 05:24 am, Patrick Law wrote:
> Hie again...
>
> How to do a select-all in vi?
> I want to select all then remove entries in .bash_history.
> Can anyone recommend any site or reference for vi?
> Thanks a lot.
Learning vi is
> How to do a select-all in vi?
> I want to select all then remove entries in .bash_history.
> Can anyone recommend any site or reference for vi?
> Thanks a lot.
try :
http://www.tldp.org/HOWTO/Vim-HOWTO.html
s//CIAO/g; $@++;
__END__
__
(**)
/\/\
(| |)
\_/--\_/
mailto : _TUXX_
[
ginal Message-
From: Patrick Law [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 11:24 AM
To: [EMAIL PROTECTED]
Subject: RE: history command
Hie again...
How to do a select-all in vi?
I want to select all then remove entries in .bash_history.
Can anyone recommend any site or refe
PROTECTED]
Subject: Re: history command
Patrick Law wrote:
> Hi guys, Happy New Year,
>
Same to you!
>
>
> How do I remove the entries in command history?
>
clear the file .bash_history (in your home directory) should to the trick.
to find it type : ls -la .bash_h
Patrick Law wrote:
Hi guys, Happy New Year,
Same to you!
How do I remove the entries in command history?
clear the file .bash_history (in your home directory) should to the trick.
to find it type : ls -la .bash_history
Thanks
-Patrick
--
redhat-list mailing list
unsubscr
12 matches
Mail list logo