Re: How to delete One line on tcsh history....??

2008-05-15 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Agus wrote:
| Hi guys,
|
| I've been trying to delete one line from my user tcsh history cause i
made a
| su and it seems didnt hit enter very well so i typed the password on the
| console...Now anyone that can look my history will see my pass...
|
| I tried to edit and delete a few lines but it all comes againtried
| history clear but when i login again it apperas all again..hehe...
| Its so secure and cool tcsh taht i have no idea how to do it...been a bash
| user...

You can clear your history (the whole history will be lost!!) by
| history -c

No clue whether you can remove a single line..

| Cheers and thanks,
| Agustin

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkgssGYACgkQwMJqmJVx944nJwCeNA0pEAxNW2MAa+p09T61ZIuy
LnEAoJSvP23/4hTq3iDW0xf/tGmfNfTS
=xmcm
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to delete One line on tcsh history....??

2008-05-15 Thread Christopher Cowart
Agus wrote:
 I've been trying to delete one line from my user tcsh history cause i made a
 su and it seems didnt hit enter very well so i typed the password on the
 console...Now anyone that can look my history will see my pass...
 
 I tried to edit and delete a few lines but it all comes againtried
 history clear but when i login again it apperas all again..hehe...
 Its so secure and cool tcsh taht i have no idea how to do it...been a bash
 user...

I use this strategy with bash, so YMMV:

$ vim .bash_history
(kill line)
$ kill -9 $$

$$ should expand to the pid of the running shell; if it doesn't in tcsh,
sub it out yourself. 

The kill -9 prevents the shell from doing it's normal exit stuff (like
writing out the history) and just kills the process. You'll need to kill
-9 any shell that you launched while the bad line was in the history
file.

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgp9sn6dYe85v.pgp
Description: PGP signature


Re: How to delete One line on tcsh history....??

2008-05-15 Thread Agus
2008/5/15 Pietro Cerutti [EMAIL PROTECTED]:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512


 Agus wrote:
 | Hi guys,
 |
 | I've been trying to delete one line from my user tcsh history cause i
 made a
 | su and it seems didnt hit enter very well so i typed the password on the
 | console...Now anyone that can look my history will see my pass...
 |
 | I tried to edit and delete a few lines but it all comes againtried
 | history clear but when i login again it apperas all again..hehe...
 | Its so secure and cool tcsh taht i have no idea how to do it...been a
 bash
 | user...

 You can clear your history (the whole history will be lost!!) by
 | history -c

 No clue whether you can remove a single line..

 | Cheers and thanks,
 | Agustin

 - --
 Pietro Cerutti
 [EMAIL PROTECTED]

 PGP Public Key:
 http://gahr.ch/pgp

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.9 (FreeBSD)

 iEYEAREKAAYFAkgssGYACgkQwMJqmJVx944nJwCeNA0pEAxNW2MAa+p09T61ZIuy
 LnEAoJSvP23/4hTq3iDW0xf/tGmfNfTS
 =xmcm
 -END PGP SIGNATURE-




Cool,
thanks guys.I used the history command and worked; weird, i had tried
that...maybe i used it in another place...

Thanks guys. Cheers,
Agustin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]