TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Have any of you switched to Bash on Windows?

70 点作者 ywecur将近 9 年前
I&#x27;ve owned a Mac for about a year now, and it&#x27;s worked very well. I do however miss being able to game on my laptop, and with the announcement of Bash on Windows I&#x27;m thinking of making Windows my sole environment.<p>Those of you who have tried this: What&#x27;s your experience been like? Is it inferior in any significant way to your workflow?

24 条评论

jhugg将近 9 年前
1) It’s super cool that it works.<p>2) It’s not ready yet. Lots of stuff doesn’t work, though much does.<p>3) It’s oddly separate from Windows, which makes perfect sense, but the unix is so much less integrated than mac (or obviously linux) systems are.<p>3a) Not being able to launch windows binaries from Bash makes scripting hybrid stuff hard. I think this will be fixed at some point.<p>3b) I’m not sure if the windows file explorer can see the ubuntu root fs. Could be wrong here.<p>It seems that once it goes 1.0, it will have some advantages over a VM with shared files, but also a few disadvantages.
评论 #11799388 未加载
oldsj将近 9 年前
So I got all excited and bought a Dell xps 13. I originally just wanted a laptop that would work great with linux but of course it turned out to be more work than it was worth so I switched to win10. I joined the windows insider program and messed with bash on Windows for a few hours but found that it&#x27;s definitely not ready yet. It&#x27;s a great idea and I&#x27;m glad they are working on it but simple thing like hitting ctrl+x to exit nano would crash the whole terminal. Anyways I switched to the git sdk with pacman and that actually was a very decent substitute. Unfortunately, the bottom half of my xps&#x27;s screen went out after owning it for 3 months, and Dell support has had the thing in the shop for almost a month now. I vividly remember now why I left the windows scene and recently got a retina MacBook pro. I know I&#x27;m a little off topic but put bettertouchtool on it with Windows style window snapping and it&#x27;s a far superior experience in my opinion.
评论 #11799025 未加载
评论 #11799312 未加载
lj3将近 9 年前
I&#x27;ve been using it for a while now. There are lots of small annoyances, like every file appearing with a green highlight because it doesn&#x27;t know how to deal with NTFS (for some reason it thinks everything is other-writable).<p>Also, if you use the ext2 volume manager to access EXT3 or EXT4 drives, they don&#x27;t show up in bash at all. I haven&#x27;t figured out why yet.<p>I was able to install ZSH after some fiddling with ZSH and compiling a custom version. That was a month or two ago, though. I don&#x27;t know if that&#x27;s necessary anymore or if they fixed the issue. But, everytime I run bash.exe I have to switch to ZSH manually. For whatever reason, chsh thinks zsh is an invalid shell.<p>A bigger issue, for me, is it runs as root by default. I was able to create another user and manually switch over using &#x27;su&#x27;, but it&#x27;s an annoyance. I haven&#x27;t figured out how to automatically start a session as a non-root user using zsh. Actually, scratch that... I just added &#x2F;bin&#x2F;zsh to the bottom of my .bashrc file and it works.<p>Another downside is the linux subsystem has no awareness of the rest of windows and vice versa. I imagine that kind of integration is going to take some time, but I look forward to being able to automate my windows programs with bash!<p>All the things I need it to do work, though. I use vim and grep and search and all those lovely features that I call my &quot;zsh ide&quot;.<p>So, on the whole... I wouldn&#x27;t use it as my primary daily driver yet, especially considering you have to sign up for the windows 10 dev updates in order to get it. Every morning when I wake up it&#x27;s a coin flip whether the machine will work or decide not to render drop down menus (just as an example...).<p>But, when they finally get it working and release it as standard, it&#x27;ll be marvelous. Much, much faster and easier than running a VM or Cygwin.
评论 #11798971 未加载
lnanek2将近 9 年前
Usually I use Cygwin. Have for many years. If I ever hear Bash on Windows gets a feature that doesn&#x27;t have, maybe I&#x27;ll check it out!
评论 #11799162 未加载
评论 #11799453 未加载
ghurkan将近 9 年前
My experience so far: Installed Ruby in bash. Fetched some PDFs online by using a basic script. Didn&#x27;t get any errors. As others may say, it&#x27;s still buggy. It can&#x27;t replace your work environment just yet. But it&#x27;s constantly getting updated.
评论 #11798922 未加载
ryanlol将近 9 年前
The thing that annoys me the most about is the fact that it is absolutely impossible to get useful google results regarding it. (Desperately needs a common acronym or more googleable name)<p>Otherwise it&#x27;s been pretty awesome, despite some incompatibilities.<p>And oh, get ConEmu to fix the garbage cmd.exe <a href="https:&#x2F;&#x2F;conemu.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;conemu.github.io&#x2F;</a>
NobleSir将近 9 年前
Msys2 fills the need you seem to be having for me: <a href="https:&#x2F;&#x2F;msys2.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;msys2.github.io&#x2F;</a> it uses pacman for a package manager and has everything I&#x27;ve needed. The only thing windows + msys2 missed for me was xcode for writing iOS apps, but if you already have a mac, then it&#x27;s not really a problem.
stephenr将近 9 年前
I find it hard to believe anyone was&#x2F;is using OS X instead of Windows just for Bash.<p>Every Mac since the switch to Intel processors has built in support for dual-booting Windows. If you want to play games that don&#x27;t run on OS X, boot into Windows and play your game.<p>I am struggling to understand the concept of compromising your working environment so much, just for the ability to <i>play games</i> without a reboot.<p>I would imagine the productivity losses in a <i>single hour</i> of working would be more time than is required for two full reboots - into Windows and back to OS X.
评论 #11804541 未加载
DennisAleynikov将近 9 年前
I just had to switch from mac to windows upon losing my only mac workstation. I really hated the transition at first and bash on windows was my savior. It actually has apt-get and even though it&#x27;s only on the preview builds for now it will become legit soon and be almost as useful as normal bash on any other nix system.<p>One of the most glaring issues is that it&#x27;s contained in a windows-like terminal and the fonts are broken for non-standard characters.
评论 #11799411 未加载
davidgerard将近 9 年前
When I&#x27;m stuck on Windows I install Cygwin and live in the Cygwin shell. It&#x27;s almost like home.<p>I found it very useful for monitoring - instead of waiting for someone to write e.g. a Nagios script for the thing you want to keep an eye on, you can just write a bash script.<p>I have yet to have to try the official Microsoft bash. The question is whether it is competitive with Cygwin for these purposes. i.e., does it carry all the other GNU tools with it.<p>I gave up using Windows when the Windows rot got too bad after about a year and I couldn&#x27;t be bothered reinstalling. YMMV.
评论 #11806717 未加载
vinniedaarm将近 9 年前
The only irritating thing for me so far is not being able to set the default shell to something other than bash. I love zsh (with oh-my-zsh installed). That works but I have to open a command prompt, type &#x27;bash&#x27;, and then type &#x27;zsh&#x27;. Even doing a &#x27;chsh -s &#x2F;usr&#x2F;bin&#x2F;zsh&#x27; doesn&#x27;t work.
KayL将近 9 年前
There&#x27;s still many bugs on Windows Bash. You couldn&#x27;t 100% rely on it.
naakkupoochi将近 9 年前
While in &quot;bash on Windows&quot; I happened to upgrade or uninstall packages and that caused the package manager to get into a cyclical dependency issue and could not install or update anything further. Could not do any sort of cleanup and the entire thing is now useless and don&#x27;t know how to restore it to the initial state
评论 #11799017 未加载
facorreia将近 9 年前
I&#x27;ve made the switch to Bash, and the full Linux kernel and userland, a few years ago, and I&#x27;ve been loving it.<p>As for gaming, I have one HD on my machine with Windows, and I boot from it to play.<p>This has the added bonus of completely separating my &quot;work&quot; environment from my &quot;play&quot; environment.
ams6110将近 9 年前
I don&#x27;t use Windows much these days and haven&#x27;t tried &quot;Bash on Windows&quot; but for many years I regularly used bash in cygwin on Windows. At the time I used PuTTYcyg (<a href="https:&#x2F;&#x2F;code.google.com&#x2F;archive&#x2F;p&#x2F;puttycyg&#x2F;" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;archive&#x2F;p&#x2F;puttycyg&#x2F;</a>) for my terminal emulator (apparenlty no longer maintained).<p>I remember it all working very nicely with little perceptible difference from working on Linux.
alexeiz将近 9 年前
This Bash on Windows is not created to replace Ubuntu desktop. It&#x27;s created for running Ubuntu in the Windows-based cloud, Azure. You can already run Linux services in Azure with Docker, but the performance is sub-par, because Docker for Windows currently relies on VirtualBox. But once the new Docker is available (that uses HyperV) with better performance, Bash on Windows will be instantly obsolete.
mcdevhammer将近 9 年前
I haven&#x27;t tried it yet (still running 7) but I use the git bash shell all the time. Can anyone chime in on what the bash in Windows 10 gives you that git bash doesnt? Not that I&#x27;ve really fully explored but git bash seems to have a lot of the common utilities (it has grep and vim).
评论 #11799395 未加载
vram22将近 9 年前
For anyone interested in a lightweight partial solution, the Ch suite of tools (that runs on Windows) from SoftIntegration.com includes many common Unix command line tools. I first got it for the C interpreter, then found the other features, and use some of them.
PeterWhittaker将近 9 年前
Is there a decent Windows equivalent to homebrew? I&#x27;ve read of scoop, but have no experience with it.
评论 #11799280 未加载
voltagex_将近 9 年前
The issue will be that they need to ship a whole new version of Windows for major (syscall-side) improvements - this isn&#x27;t a problem with the Insider program, but you <i>really</i> don&#x27;t want to be running Insider builds on your primary dev machine.
anthnguyen94将近 9 年前
I&#x27;ve had it since it first came out, it&#x27;s miles better now than it was at first and I&#x27;m sure once it hits 1.0 it&#x27;ll be usable for some dev work. Still going to stick with my Ubuntu book for full stack at the moment though.
lacker将近 9 年前
I tried, but it got bogged down with bugs in the installation &#x2F; setup process. Seems like it just isn&#x27;t quite ready for prime time yet, which is fair because Microsoft hasn&#x27;t really claimed it is yet.
captnsamoil将近 9 年前
The true question here would be: When should we expect Fish for Windows?
评论 #11799177 未加载
Scarbutt将近 9 年前
There is this thing called &#x27;virtual machines&#x27; and you can run a linux one in windows.
评论 #11799222 未加载