Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clear is not recognized as an internal or external command

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

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

It happens with some other command lines too, but this one is really annoying because I often need it. I have no idea how to fix it.

Any tips?

like image 283
Lu Kanemon Avatar asked Apr 17 '15 14:04

Lu Kanemon


2 Answers

The message is completely correct; no such command exists.

Did you mean cls?

like image 185
SLaks Avatar answered Oct 21 '22 21:10

SLaks


This command, clear may exist in other code, but not in batch code. If you mean the command need to clear the screen, use cls. That will clean the screen.

like image 22
Yoav Grinberg Avatar answered Oct 21 '22 21:10

Yoav Grinberg