I am using a windows 7 machine and a)

Wondering why the commands of CMD are even different?

And b)

If it is possible to change the commands so that it behaves like linux
有帮助吗?

解决方案

The simple answer is that it's a different operating system! You can't change the CMD commands, but you can setup a unix/linux type shell environment in windows.

Your two main choices are:

I've used both and prefer msys, but both work just fine.

These will install programs and libraries to support them that you should be familiar with (bash, gawk, sed, grep, etc).

You'll also want to look at a decent terminal emulator:

  • Console
  • ConEmu

I prefer ConEmu, but again both work just fine and I'm sure there are other options out there too. You don't need an emulator, but it's nicer than the normal command window

其他提示

Install msys and you can mostly use unix commands.

It's not possible but you can install an environment like Cygwin:

http://www.cygwin.com/

Or install tools like Unxutils:

http://unxutils.sourceforge.net/

Even install a virtual system with VirtualBox:

https://www.virtualbox.org/‎
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top