Remove Commands from Buffer

Hi..

When I execute a command, say for ex.. cp ../../* to ..../.../*
and then when I use escape K, enter... it shows the commands recently executed.

How can we remove that commands from buffer?

This is a sun-solaris 8 environment..

Thanks, ST2000

Well, this thread tells where the history log is for each shell.

As for disabling that, I'm not sure how, but there's gotta be a way. Do you really want to though? Could be a compromise in security if you have a lot of people typing commands and no way to check for suspicious activity...

I want it temporarily only or clearing buffers when executed. History command has also a limitation set.. And in terms of security, I don't understand how we are comprimising since there ought to be a certain limitation of buffer and you can always keep executing junk commands, so buffer can be overwritten..

I mean, something like "clear buffer" etc.,

Thx, ST2003

If your history file is .sh_history.

then type
> .sh_history

the content of the history file will disappear.