Is Next Year the Year of Linux on the Desktop?

Pigs without wings
Quick Check: Nope. Still no wings.

Probably not, but this year is The Year of Linux on the Command Line, finally. The last hold out, Windows, is bringing the BASH shell to Windows.

Yeah, I know. I had to read the headline of this story three times before I could begin to believe it.

Here is an announcement from Microsoft Build you probably didn’t see coming: Microsoft today announced that it is bringing the GNU project’s Bash shell to Windows. Bash (Bourne Again SHell) has long been a standard on OS X and many Linux distribution systems, while the default terminal for developers on Windows is Microsoft’s own PowerShell.

More importantly than bringing the shell over to Windows, developers will now be able to write their .sh Bash scripts on Windows, as well (or use Emacs to edit their code). Microsoft noted that this will work through a new Linux subsystem in Windows 10 that Microsoft worked on with Canonical.

It won’t fix the operating system, but at least interacting with it will make slightly more sense now.

TIL: List Directories

Unix 101: To make a list of just the subdirectories inside the current directory:

$ ls -ld */

Or, to include “hidden” directories and ALL subdirectories recursively:

$ find . -maxdepth 1 -type d

Of course, you can change the maxdepth depending on how far you want to go into the inner recesses of your file system.

There’s so much cool stuff you can do with the ls command that it’s worth looking up its man page every few months as a reminder…