Windows CopSSH Clear

On a default install of CopSSH 1.4.2 I noticed that you cannot run “clear” after launching “Start a Unix BASH Shell”.

Type in “cmd /c edit” to open the MS-DOS Editor and enter the following:

#!/bin/bash
cmd /c cls

Save the file as “clear” and exit the editor. Back in the shell, try running “./clear” and you should receive pleasant results.

0 thoughts on “Windows CopSSH Clear

  1. The cool part about this is that you can put regular Windows shell commands inside a bash script if desired. Unfortunately, this “clear” script will not work if you are ssh’ing in from another machine… but it will work locally as described above.