Windows cmd only uses Linux commands

1

2

I'm using Windows 7 and for some weeks I can't use Windows commands (e.g. taskkill) anymore but Linux commands (e.g. ls, kill, ps,...) instead. The problem seems to be that it is not using my PATH environment variable anymore because it contains all necessary paths like "C:\Windows\system32" but it still says "command not found" for all programs contained in those folders.

It must have something to do with my installed Cygwin which I did several months ago and which I'm updating regularly. Also I've installed the git bash, in which I can use Linux commands, too...could have something to do with it. It looks like Windows got some kind of infected with Linux and is now sick, to describe it in a funny way

I don't know what it was exactly that I did that this all happened, can anyone help?

Michel Michael Meyer

Posted 2013-01-06T22:40:24.347

Reputation:

Why am I getting downvoted? I seriously have no idea how to set my cmd back to "normal". – None – 2013-01-06T23:11:47.710

Type Path at the command prompt. What is the output? – Aluísio A. S. G. – 2013-01-07T00:00:32.937

Git-Bash has an option to use linux commands only in Git shell (the one that comes with it). You could try to remove Git-bash and reinstall with that option enabled (or disabled? I forgot what the option actually reads). – None – 2013-01-07T00:37:14.207

5Are you sure you're running the Windows command shell and not bash or another Cygwin shell? – Harry Johnston – 2013-01-07T02:15:37.157

No answers