Clear history in ksh

Hi

Am using ksh shell

I need to remove history of commands used..

I tried

# rm .vi_history
# touch .vi_history
# chmod 600 .vi_history

This didnt work.. I tried also

# rm .sh_history
# touch .sh_history
# chmod 600 .sh_history

Even after this when i use the command

# history
465     vi .vi_history
466     rm .vi_history
467     touch .vi_history
468     chmod 6000 .vi_history
469     chmod 600 .vi_history
470     history

I need to delete all commands history that has been used so far..
Please help..:wall:

do you have -c option in history?
or just try..

 
>.sh_history

Don't use ksh but......

Google brought this up:-

Changing the size of the command history

You could set the size to 0, (zero).

Once you empty .sh_history, you need to open a new session to see the cleared history.

One wonders why you would need to do this. Are we covering up? All accounts should be personal rather than shared, so you know what you typed anyway.

Robin

I thought the same thing. The only reason why I think someone would want to do this (and I apologize if I'm making the wrong assumption here) is to clean after himself / herself after an intrusion. I repeat, I might be wrong, but...