win added Linux command

Create the linux_cmd.bat file

Create a linux_cmd.bat file under the personal path (C:\Users\****), the content is as follows

@echo off
:: Linux 命令对应表
doskey ls      = dir $*
doskey cp      = copy $*
doskey rm      = del $*
doskey mv      = move $*
doskey pwd     = cd
doskey clear   = cls
doskey ps      = tasklist $*
doskey alias   = doskey $*
doskey cat     = type $*
doskey cpr     = xcopy $*
doskey grep    = find $*
doskey history = doskey /history
doskey kill    = taskkill /PID $*
doskey man     = help $*
doskey rmr     = deltree $*
doskey sudo    = runas /user: administrator $*
doskey vi	   = vim $*

echo with Linux bash command

Add registry

Let it be automatically loaded every time cmd is executed

open registry

在
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
位置
添加字符串值(String Value)
Value name:
AutoRUN

Value data:
C:\Users\***\linux_cmd.bat

Guess you like

Origin blog.csdn.net/weixin_42131208/article/details/128241428