C:\Users> clear
'clear' is not recognized as an internal or external command,
operable program or batch file.
C:\Users> clear screen
'clear' is not recognized as an internal or external command,
operable program or batch file.
You defiantly got the above error while trying to clear the screen on a Command Prompt on your Window 8/10 operating system? didn't you? Well! I guess you are very much used to using Terminal command on macOS or Linux so you used the command clear on Windows you need to use cls i.e. a command to clear the screen.
Example:C:\Users> cls
To know more about the command type: help cls
Example:C:\Users> help cls
Clears the screen.
CLS
More Posts related to DOS,
More Posts:
- Difference between using Scanner Class and String args for user input in Java - Java
- New-SPLogFile PowerShell - create new SharePoint log file - SharePoint
- Maven : java.lang.ClassNotFoundException: Xmx512m - Android
- Find Difference of two numbers - C-Program
- How to take user input from the console in a Python program - Python
- How to start or open a new bourne-again shell (bash) session on Windows using Command Line CMD - Bash
- How to Import External Jars to Android Studio Project - Android-Studio
- Exception in thread main java.lang.NoClassDefFoundError: package javaClass - Java