____  ___    _  _     _   _ _____     _______
 / ___|/ _ \  | || |   | | | |_ _\ \   / / ____|
| |  _| | | | | || |_  | |_| || | \ \ / /|  _|
| |_| | |_| | |__   _| |  _  || |  \ V / | |___
 \____|\___/     |_|   |_| |_|___|  \_/  |_____|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Getting Started with Bash on Windows

BY: @tomshwom | CREATED: Oct. 17, 2017, 4:51 p.m. | VOTES: 19 | PAYOUT: $1.79 | [ VOTE ]

[IMAGE: https://steemitimages.com/DQmQFc8Z7rKHjg2yaxMzNt15ZvBesjUzJZ4gCsXUJtaFdto/image.png]

Preface

This isn't a super new feature of Windows 10, but I'm planning on doing some Python-related content in the near future and I figured I'd show you all how I actually do my development work.

There's other great guides out there on how to install this, so I'll not be taking a super detailed look at that. Instead, I'll be linking to different useful resources you can use to get up and running, and I'll even throw in some tips that will really help make things easy.

You will want to have some basic experience with the Bash shell and the Linux filesystem, but you certainly don't have to be a pro. You will probably want to know some basic Python programming too if you want to follow along in my future posts that I'll be doing using Bash on Ubuntu on Windows.

What is the Windows Subsystem for Linux?

The Windows Subsystem for Linux (WSL) is a compatibility layer that allows Linux binary executables run natively in Windows 10. Originally, this feature was released during the Anniversary Update, and only an Ubuntu image was available. The Fall Creators Update added Fedora and Suse images, and made it simple to install the distributions through the Windows Store. Users can use the WSL to run a Linux userland containing things like a Bash shell, Linux command-line tools like grep, sed and awk, and interpreters for programming languages like Python and Ruby.1

You can learn more in the official MSDN documentation here.

Installing Bash on Ubuntu on Windows

Out of the available images, I prefer using Ubuntu simply because it's very familiar and easy. The only other distros I'm very familiar with are Tails and Backtrack 5 (which is now Kali), and neither are suited for the development we want to be doing.

Check for compatibility

You need to be running a 64-bit version of Windows 10 that is at least the 1607 build or later.

Go to Settings > System > About to check the OS Build and System type fields.

[IMAGE: https://steemitimages.com/DQmbNXVKstcU83bstgYkELBxK8JE6ppyzJwd5Mh47qBKzre/image.png]

Install the Windows Subsystem for Linux

The best directions can be found here.

Remember that your UNIX username and password are unique to the subsystem and are not related to your Windows credentials. The first user account you create is automatically configured to be the default user and to have administrative privileges (member of the sudo group).

Tips & Tricks

Adding "Open Bash Here" to the context menu

One of the nice little features in Ubuntu is the ability to right-click in any folder and open up a terminal right in that directory. Thankfully, with a bit of registry tweaks, you can do it in Windows too! Remember to back up your registry before making any edits - you can permanently damage your system if you mess up your registry.

[IMAGE: https://steemitimages.com/DQmdMajYewC6kGwYPSFiGYdo8fhKsfyA8pdiGLjEKbQuTft/image.png]

I'm following the guide found here by How-To Geek.

[IMAGE: https://steemitimages.com/DQmS1eQX41B5ahRUgqSyytBrM3yhBHP2fJJvQ9qEN9UrCoW/image.png]

Navigating the Windows file system in Bash

Copy & pasting to and from Bash

Updating

More tips & tricks

Leave a like or resteem if you found this helpful. You can also support me by sending ETH or ERC20 toeksn to Tomshwom.eth. Leave your thoughts below about what you think and on which content you'd like to see in the future!

TAGS: [ #technology ] [ #programming ] [ #linux ] [ #windows ] [ #bash ]

Replies

@amanpathak | Oct. 18, 2017, 4 a.m. | Votes: 1 | [ VOTE ]

Why you flagged this comment

https://steemit.com/bitcoin/@boxmining/komodo-in-a-nutshell-writeup#@techhelp/re-boxmining-20171017t142949970z

Calling @steemcleaners

@tomshwom | Oct. 18, 2017, 1:57 p.m. | Votes: 1 | [ VOTE ]

Because it's a shit comment, has no substance, and is blatantly advertising the @techhelp content even though it's irrelevant to anything on the post.

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>