我使用的是Windows 7机器和a)
Wondering why the commands of CMD are even different?
和b)
If it is possible to change the commands so that it behaves like linux
答案 0 :(得分:2)
简单的答案是它是一个不同的操作系统! 您无法更改CMD命令,但可以在Windows中设置unix / linux类型的shell环境。
您的两个主要选择是:
我已经使用过两者并且更喜欢msys,但两者都运行得很好。
这些将安装程序和库来支持你应该熟悉的程序(bash,gawk,sed,grep等)。
你还想看一个体面的终端模拟器:
我更喜欢ConEmu,但两次都很好,我相信还有其他选择。 您不需要模拟器,但它比正常的命令窗口
更好答案 1 :(得分:0)
安装msys,您通常可以使用unix命令。
答案 2 :(得分:0)
这是不可能的,但你可以安装像Cygwin这样的环境:
http://www.cygwin.com/
或者安装像Unxutils这样的工具:
http://unxutils.sourceforge.net/
甚至使用VirtualBox安装虚拟系统:
https://www.virtualbox.org/