[Linux] 在windows下给命令起别名(alias)

最受不了的是windows下面没有"ls"命令。怎么办?

最简单的方法是写一个“ls.bat”放在windows目录下,内容为“dir”。

然后“ps”命令也是必不可少的:创建一个“ps.bat”,内容为“tasklist”,同样放在windows目录下。

其他命令照此办理。

为了提醒自己别忘了这个方法,可以创建一个“alias.bat”放在windows目录下,内容为“@echo You can try create a batch file under system folder. - by Eric”

原文地址:https://www.cnblogs.com/hehe520/p/6330417.html