Clear shell history - TechRepublic
General discussion
March 1, 2002 at 04:15 AM
cp409sd

Clear shell history

by cp409sd . Updated 24 years, 3 months ago

I accidentally typed a password at the command prompt thinking I was being asked for one by a program, when in reality, I was just at the regular command prompt. Now that password is in the history. I am using ksh for the shell. How do I get rid of this from the history? Also, if someone knows how to do it on the bash shell, that would be helpful too. Thanks.

This discussion is locked

All Comments