How to create ls in windows command prompt?

前端 未结 19 2273
一向
一向 2020-12-07 08:34

I want to use ls in windows command prompt and make it run the dir command.

How can I do that?

19条回答
  •  北海茫月
    2020-12-07 09:31

    Someone who uses Linux Subsystem for Windows could call ls from the Linux bash. The following Command creates the ls Command in System32:

    echo @bash -c "ls %*" > %systemroot%\system32\ls.bat
    

    (The Linux Subsystem feature must be enabled/installed first)

提交回复
热议问题