Live data from Hacker News

Bash on Ubuntu on Windows

blogs.msdn.microsoft.com

161–170 of 434 posts

Re: Bash on Ubuntu on Windows

#161
post #77

I honestly don't really see the point in this. If you like Ubuntu/Linux more, then just install Ubuntu/Linux on the computer without Windows. Why go through the additional layer of Windows? Perhaps the use case is limited to people who need to run Windows/Mac-only software like AutoCAD or some Adobe software.

I like the Unix command line, but I don't really like Desktop Linux anymore (after having it used for >10 years), that's why I use OS X at home. At work I'm required to use Windows because I develop Windows software, so it's actually quite exciting that I get to use my most useful Unix utilities on my work computer as well.

May I ask you why you don't like it? As a new-ish Linux convert, I'd like to see your point of view as someone who used it for a while.

Re: Bash on Ubuntu on Windows

#163
post #80

Smart move by Windows. I guess that developer usage of an OS ultimately results in developer developments for the OS, though I don't have any number for this. It seems to me that a lot of developers, especially at startups, have switched to OS X with its shiny GUI and UNIX compatibility. I'd hazard the guess that this will ultimately result in OS X becoming more of a developer target over time. Initially for develope…

Is it that smart? Being developer friendly sounds like just plain common-sense, not some genius breakthrough. The question should be more why has it taken them so long to get to this point.

Maybe. It is definitely the common-sense thing to do today, five years ago, it would have been smart. From a pre-Nadella perspective, you could have called it revolutionary, but now we're used to Microsoft participating in OSS, so it's much less so.

Re: Bash on Ubuntu on Windows

#164
post #111

Man i do think this is a big step for windows , it's 2016 and still complex to pull a du -sh or df on windows. Things we take for granted on *nixes. Much love.

According to http://stackoverflow.com/a/868290/259130 function directory-summary($dir=".") { get-childitem $dir | % { $f = $_ ; get-childitem -r $_.FullName | measure-object -property length -sum | select @{Name="Name";Expression={$f}},Sum} } I could get a shorter non exact version if I was on windows.

For 'du':

    > Get-ChildItem C:\windows | Measure-Object -property length -sum


    Count    : 28
    Average  :
    Sum      : 6407920
    Maximum  :
    Minimum  :
    Property : length
For 'df':

    > get-WmiObject win32_logicaldisk

    DeviceID     : C:
    DriveType    : 3
    ProviderName :
    FreeSpace    : 21796540416
    Size         : 31685865472
    VolumeName   :

    DeviceID     : D:
    DriveType    : 5
    ProviderName :
    FreeSpace    :
    Size         :
    VolumeName   :

    DeviceID     : Z:
    DriveType    : 4
    ProviderName : \\veertu\share
    FreeSpace    : 44674220032
    Size         : 399999991808
    VolumeName   : VeertuFS

Re: Bash on Ubuntu on Windows

#165

Can anyone comment to how nice or awful running some sort of Linux VM (maybe under Hyper-V) and using Putty to SSH to it for development on Windows would be? This work is promising, but doesn't appear "quite there", yet. I run OSX now, but don't really ever develop directly on the machine and am mostly SSH'ed to Linux hosts for development.

It works amazingly well. Vagrant helps a lot setting everything up. I even used several VM instances at the same time trying to mimic microservices running in different servers. I edited all the files in my fave IDE running in Windows, a file change would trigger an automatic server restart on the affected service/VM. Debug worked just fine as did mobile debug using Vagrant Share. It's my workflow for web stuff.

I sound like a Vagrant fanboy or shareholder but I'm just a very happy dev since I started using this setup.

https://www.vagrantup.com/

Re: Bash on Ubuntu on Windows

#166

Can anyone comment to how nice or awful running some sort of Linux VM (maybe under Hyper-V) and using Putty to SSH to it for development on Windows would be? This work is promising, but doesn't appear "quite there", yet. I run OSX now, but don't really ever develop directly on the machine and am mostly SSH'ed to Linux hosts for development.

I did this for 2013 - used Windows 7 because of the Toshiba brightness bug in Linux (until Windows rot annoyed me more). I started on PuTTY but rapidly switched to Cygwin and ssh.

Re: Bash on Ubuntu on Windows

#167
post #111

Man i do think this is a big step for windows , it's 2016 and still complex to pull a du -sh or df on windows. Things we take for granted on *nixes. Much love.

According to http://stackoverflow.com/a/868290/259130 function directory-summary($dir=".") { get-childitem $dir | % { $f = $_ ; get-childitem -r $_.FullName | measure-object -property length -sum | select @{Name="Name";Expression={$f}},Sum} } I could get a shorter non exact version if I was on windows.

Or you can just download du.exe from SysInternals to get a du-like tool.

Re: Bash on Ubuntu on Windows

#170
post #149

Earlier quoted context omitted.

I highly doubt that "Winux" will really result in a large increase of people learning CLI tools. People that want to use those tools already have way that they're doing so. Consider that most people have difficulty using a basic word processor, much less Unix tools.

I'm considering the masses. But many in higher-education are on Windows (my experience here in the Netherlands). I can imagine that, for instance, they will use Winux at some point. Same for some IT professionals that use Windows (either since their job demands it, or out of preference). They might install Winux at some point to get some aspect of their work done faster. Again a lower barrier to get your CLI skills u…

And why would they switch to full linux when they can get their cli tools AND Windows productivity?
Post reply on HN