Home > howto > Clearing Console in Cygwin

Clearing Console in Cygwin

September 9th, 2009 Flo Leave a comment Go to comments

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.

Categories: howto Tags:
  1. September 9th, 2009 at 20:07 | #1

    Meine letzten cygwin Experimente sind schon länger her aber nach einer kurzen Suche sollte mit dem package ncurses das clear commano mitkommen.

  1. No trackbacks yet.
CommentLuv Enabled