Skip to content

vanHeemstraSystems/terminal_commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

terminal_commands

Terminal Commands

Make the "cls" command in a Windows terminal act when using the "clear" command of Linux

Add cls and clear custom commands to both Windows and Linux so you don’t punch a hole in the monitor when you keep typing the wrong one.

Step 1: Windows

9ac91cc888102808c41bc50cf5c1a2c7032965e2

This is the simpler one of the two.

Text editor: (notepad)
Just open notepad, type in cls and save it as “C:\Windows\Clear.bat”. Now every time you’re in CMD and type clear, you will clear your screen just like cls.

Command Prompt:
Elevate yourself as admin and run echo cls > C:\Windows\Clear.bat.

Step 2: Linux

2896815acc52642c91b15e780a3aed955db649c0

A little more time consuming, but simple none the less. After this, typing cls will clear your prompt.

Terminal:
Elevate yourself to root and run echo clear > /usr/bin/cls; chmod 777 /usr/bin/cls

Just something small that keeps your from pulling out your hair.

About

Terminal Commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published