Clearing Console in Cygwin
September 9th, 2009
1 comment
Just a short one but hopefully helpful!
I’m working a lot on Windows at the moment but I have Cygwin installed as Unix environment, e.g., for working with git scm.
One thing I thing I was missing is that I could not clear the console with “cls” which was pretty annoying.
After doing a little research I figured out how to fix that.
1. using CTRL – L
2. defining an alias like
alias clear='cmd /c cls'
If you just type it in a cygwin shell it will only be available for the current session.
If you want to make this alias persistent you need to edit ~/.bashrc with your favourite editor and add it.
You will also find many other predefined aliases there which are commented out.