Ubuntu Bash tutorial on Windows 10

The Windows 10 Insider Preview Build 14316 version is packed with new features. One of those features is "Windows Subsystem for Linux".

The Windows 10 Anniversary Update update was released this summer, adding the ability to use Bash to run Linux applications according to the command. Microsoft has provided a trial version of some of the features of Anniversary Update in Build 14316 including Bash in Windows 10.

Note : Build 14316 is only for Windows Insider users.

1. What is Bash on Linux?

For unknown users, Bash or Bourne Again Shell is a standard GNU Linux Shell program.

2. Run Ubuntu's Bash on Windows 10

First activate Developer Mode by:

Go to Settings => Update & Security => For Developers menu. Then select Developer Mode , then search Windows Features select Turn Windows features on or off .

Ubuntu Bash tutorial on Windows 10 Picture 1

On the Turn Windows features window on or off select Windows Subsystem for Linux (Beta) and then select OK.

Ubuntu Bash tutorial on Windows 10 Picture 2

Now Windows will search for the necessary files and start applying changes. After the process has finished, click Restart Now to restart your computer.

Ubuntu Bash tutorial on Windows 10 Picture 3

After booting, right-click on the Start button and select Command Prompt (Admin) or Powershell .

Next enter Bash in the Command Prompt window and press Enter. This time the screen appears This will install Ubuntu on Windows, distributed by Canonical and. . Enter Y to continue the next steps.

Then press Y to start the download process from the Windows Store.

Ubuntu Bash tutorial on Windows 10 Picture 4

After the download process finishes, it will begin the process of extracting the file system.

After the process is finished you will receive a successful installation message: Installation Successful! The environment will start momentarily .

Ubuntu Bash tutorial on Windows 10 Picture 5

From now on you can run the Bash Script, the command line in Linux like sed, awk, grep, . directly on Windows. Also you can access Windows system files from Bash.

Ubuntu Bash tutorial on Windows 10 Picture 6

In addition, after installing, Bash is also listed in the app, you can open All app then click Bash on Ubuntu on Windows to open Bash.

Ubuntu Bash tutorial on Windows 10 Picture 7

Refer to some of the following articles:

  1. 6 ways to view IP addresses on computers, smartphones or Tablet
  1. How to access Linux partitions on Windows?
  1. Certain deadly commands never run on Linux

Good luck!

5 ★ | 1 Vote

May be interested

  • Learn the file system and folders on Linux operating systemsPhoto of Learn the file system and folders on Linux operating systems
    linux and unix file systems are organized in a hierarchy similar to the structure of a hierarchical tree. the highest level of the file system is the root directory, denoted by a slash '/' (root directory).
  • How to use Zsh (or other Shells) on Windows 10?Photo of How to use Zsh (or other Shells) on Windows 10?
    bash shell is integrated into windows 10 anniversary update version is just a compatible class to run linux software on windows operating system. you can use the bash shell to run zsh or any shell you want.
  • Instructions for accessing Ubuntu Bash files on WindowsPhoto of Instructions for accessing Ubuntu Bash files on Windows
    you can access the windows system drive and any other drive on your computer from the ubuntu bash shell. this allows you to work with normal windows files using the linux command utility.
  • How to create an ISO file on LinuxPhoto of How to create an ISO file on Linux
    you may know that an iso file can be burned to a cd / dvd or usb drive, but do you know that you backup or store your files and folders into an iso file? will be better? with an iso file, you can burn it to a cd / dvd as a backup or simply mount it as an external drive and access files from within.
  • How to run 2 or more Terminal commands at the same time on LinuxPhoto of How to run 2 or more Terminal commands at the same time on Linux
    if you use linux, you probably know how to use useful commands to work with files, install software and launch programs. however, one thing you don't know is that you can still run multiple commands at the same time.
  • This is how to 'recover' a failed USB drive on LinuxPhoto of This is how to 'recover' a failed USB drive on Linux
    often users use usb drives to store data securely. however in some cases the usb drive may be faulty or simply not work. if you are using a linux operating system and you have a similar error on the usb drive, then you can use the commands to restore the usb drive.