Clear is not recognized as an internal or external command

Whenever I try to type "clear" command in cmd it returns the same message:

"clear" not recognized as an internal or external command, operable 
program or batch file.

      

This happens with some other commands as well, but it's really annoying because I often need it. I don't know how to fix this.

Any advice?

+3


source to share


2 answers


The message is completely correct; no such command exists.



Did you mean cls

?

+6


source


This command clear

can exist in other code, but not in batch code. If you want the command to clear the screen, use cls

. This will clear the screen.



Hope I helped you!

+3


source







All Articles