简体   繁体   中英

How to launch .exe files from windows 10 (ubuntu) bash?

I've installed sublime text from bash but it doesn't work it just return the bash prompt again .

then

I installed sublime natively on windows , problem is I can't run it from bash .

It is already supported in Windows 10 latest build (build 14951), used like this:

$ export PATH=$PATH:/mnt/c/Windows/System32
$ notepad.exe
$ ipconfig.exe | grep IPv4 | cut -d: -f2
$ ls -la | findstr.exe foo.txt
$ cmd.exe /c dir

more information here .

There is a ticket about it in their Github page with some hacks you can use meanwhile.

It appears at this time , the cbwin project is our best bet. I just started running into these same issues with trying to use vagrant from Bash on Windows , and my vagrant install ran into issues that required kernel support (currently lacking in Bash on Windows).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM