Windows CMD for Linux?
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.
Related videos on Youtube
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, 2022Comments
-
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
oroh
(or any of the other shells listed here) would want this.Nevertheless, seeing as one can have
bash
on Windows, has anyone tried to createCMD.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 about 7 yearsIt's not exactly "CMD.EXE for Linux" but there's CMD.exe Emulator in Ubuntu to run .cmd/.bat file
-
Admin over 3 yearsWhat 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 about 7 yearsMine's at
~/.wine/dosdevices/c:/windows/system32/cmd.exe
-
Admin about 7 yearsI thought you meant something similar to this: Comparison of Common DOS and Linux Commands
-
Admin about 5 yearsWell, arguments are completely different between cmd.exe and Unix shells. For starters, DOS/Windows uses "/" instead of "-" to introduce options.