When using CMD, one can press upper arrow key to retrieve old commands.
Is it possible to erase the history of these commands?
If so, how could one do so?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityThere is a simple keyboard short-cut, Alt+F7.
There are very few questions on cmd
that are not answered on this reference site.
Alternatively, the history is cleared every time you exit and restart cmd
.
The command doskey /listsize=0
should do the trick.
Unlike Linux-based CLIs, In Windows all histories are cleared when you close CMD.
So, don't worry about that.
Alt-F7
- see this reference site. Alternatively, you can exit and startcmd
again.