简体   繁体   English

如何从Windows 10(ubuntu)bash启动.exe文件?

[英]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 . 我已经从bash安装了sublime文本,但它不起作用它只是再次返回bash提示符。

then 然后

I installed sublime natively on windows , problem is I can't run it from bash . 我在windows上本机安装了sublime,问题是我无法从bash运行它。

It is already supported in Windows 10 latest build (build 14951), used like this: Windows 10最新版本(版本14951)已经支持它,使用方法如下:

$ 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. 在他们的Github页面上有一张关于它的票 ,你可以同时使用一些黑客。

It appears at this time , the cbwin project is our best bet. 在这个时候cbwin项目似乎是我们最好的选择。 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). 我刚开始遇到这些同样的问题, 试图在Windows上使用来自Bash的vagrant ,而我的vagrant安装遇到了需要内核支持的问题(目前在Windows上没有Bash)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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