Bash on Windows

Source: Internet
Author: User

Bash on Windows grab fresh test-Introduction and installation Preface

Microsoft announced at last week's Windows Build conference that WIN10 will introduce native bash and will soon be available in the technical preview.

As a result, Windows command-line tools are no longer just cmd and PowerShell, and we can also use bash.

Today (2016/4/8) received a 14316 version of the technology Preview push, read the next introduction, sure enough to include bash. Let's introduce and install this new gadget.

Why are we using bash?

Because there are a lot of open source tools and software under Linux, we can use them with bash.

Solutions for using bash under Windows

Before we wanted to use bash in Windows, there were two ways to do it:

    • Cygwin-Cygwin is a UNIX-like simulation environment running on the Windows platform, but it is not a Linux operating system.
    • Virtual machines-Install a Linux system on Windows using a virtual machine, but the Linux system cannot get all the machine resources, and we can only operate it remotely (RDP, VNC, SSH)

Now, Microsoft has added a new Linux subsystem, the Windows Subsystem for Linux (WSL), to the Windows kernel. With this subsystem, we can use native Bash to operate the Windows system.

Note that WSL is not a virtual machine, but a real Linux environment within Windows. As described:

Installation Instructions
    • Download and install the technical Preview 14316 Update, which takes about half an hour

    • Add remove feature in install WSL

    • Run cmd with the Administrator model and enter bash, download canonical offers Ubuntu, download speed is slow, I have to science Internet to finish

    • Automatically installs after download and adds a bash on Ubuntu to Windows program

    • Run this program and we can use the soundtrack bash in Windows

Using bash

We can work with bash like Linux.

    • Let's start with a apt-get update.

    • Try a redis, just like you do Linux

Summarize

Microsoft is increasingly determined to embrace open source, believing that bash on Windows can be a powerful addition to your game, whether you're playing with a cool outfit or a combat.

Reference links
    • (https://channel9.msdn.com/Events/Build/2016/P488)
    • (http://www.hanselman.com/blog/DevelopersCanRunBashShellAndUsermodeUbuntuLinuxBinariesOnWindows10.aspx)

With Windows ten (multiple Editions) Insider Preview 14295 (x64)-DVD (chinese-simplified), install and then install 14316 push.

Bash on Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.