How to install and use the Bash shell for Linux in Windows 10

Source: Internet
Author: User

Reprinted from: Baidu Experience

Windwos 10 's Anniversary update provides developers with a big new feature: A complete, Ubuntu-based bash Shell that runs Linux software directly on Windows. This makes it possible for the Linux subsystem to be used with Windows 10.

Method/Step
  1. Make sure that you are using at least version 14316 of Windows 10. This method applies only to the 64-bit version of Windows 10.

    Open Settings app and head Update and Security > for development. Start the "developer Mode" switch here to make the developer mode.

  2. Next, open Control Panel, click Programs, and then click Open Windows features on or off in programs and features. Enable the options in the Windows Subsystem for Linux (Beta) list here, and click OK.

    After you do this, you are prompted to restart the computer. Click "Restart Now" to restart your computer and Windows 10 will install the new feature.

  3. After your computer restarts, click the Start button (or press the Windows key), type Bash, and then press ENTER.
  4. The first time you run the Bash.exe file, you are prompted to accept the terms of service. Then the command will download bash on Ubuntu from Windows Store on Windows.
  5. How to use Ubuntu's bash shell and install Linux software

    You now have the full command line based on Ubuntu for the bash shell. Because they are the same binaries, you can use Ubuntu's apt-get command to install Ubuntu software

    To open the Bash shell, just open the Start menu, search for bash or Ubuntu and you'll see a "bash on the Ubuntu on Windows app." You can put shortcuts to this app in your Start menu, taskbar, or Desktop for easy use.

  6. Use the Linux terminal commands that you will use. If you use a standard Windows command prompt with DOS commands, here are two bash and some basic commands in Windows
  7. You need to use the Apt-get command to install and update the software in the Ubuntu environment.

How to install and use the Bash shell for Linux in Windows 10

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.