Windows CMD for Linux?

19,583

Solution 1

You can download Wine (https://www.winehq.org/) and use the Windows command line tool there that the Wine team has created. However, you will have to go digging through the .wine directory a bit, naturally, to find and execute it as it's in $HOME/.wine/drive_c/Windows/System32/cmd.exe if memory serves.

Solution 2

You can type "wine cmd" (without quotations) in the terminal and it will use DOS commands and have DOS backslashes with Z as root. If you have Wine, of course.

Share:
19,583

Related videos on Youtube

Ivan Santiago
Author by

Ivan Santiago

Software Engineer. Over 20 years experience in user-support and programming. Working full-time as Software Engineer for Daisy Digital. Research assistant / librarian for, and contributor to, the History of Programming Languages (HOPL).

Updated on September 18, 2022

Comments

  • Ivan Santiago
    Ivan Santiago over 1 year

    Let us assume that I am not in my right mind, as no one who has used a good shell like bash, fish or oh (or any of the other shells listed here) would want this.

    Nevertheless, seeing as one can have bash on Windows, has anyone tried to create CMD.EXE for Linux? If so, where can I get it from, and if not, why hasn't anyone done this?

    I'm asking here because Google searches make assumptions about what I'm asking (probably because no one in their right mind would ask in the first place.)

    • Admin
      Admin about 7 years
      It's not exactly "CMD.EXE for Linux" but there's CMD.exe Emulator in Ubuntu to run .cmd/.bat file
    • Admin
      Admin over 3 years
      What can cmd.exe do what Linux command line can not? Well, it can run .cmd scripts for one. That can be useful if you have a lot of scripts that you don't want to rewrite.
  • wjandrea
    wjandrea about 7 years
    Mine's at ~/.wine/dosdevices/c:/windows/system32/cmd.exe
  • Admin
    Admin about 7 years
    I thought you meant something similar to this: Comparison of Common DOS and Linux Commands
  • Admin
    Admin about 5 years
    Well, arguments are completely different between cmd.exe and Unix shells. For starters, DOS/Windows uses "/" instead of "-" to introduce options.