How to Run Linux Commands in Windows 10 [without Virtual Machine]

In this tutorial, we will show you the steps to run Linux commands inside Windows 10 without using any Virtual Machine. There are already quite a few third-party tools such as Cygwin, Cash, etc that allow you to carry out the said functionalities. Along the same lines, there also exists a bunch of Virtual Machines such as VMware Workstation or Oracle VirtualBox that allows you to carry out the said task.

However, they require way lot more effort, and the setup process is a tad complicated for some. So is there any way of running Linux commands on your Windows 10 PC without using these Virtual Machines and software? Well, turns out there is one, and in this guide, we have shared just that. Follow along for the detailed instructions.



How to Run Linux Inside Windows 10 [without Virtual Machine]

It all started back in 2016 when we heard the news of the welcoming of Windows Bash Shell on Windows 10. Such was the initial reaction that many people initially thought it to be just another one of those internet jokes. But fortunately, that wasn’t the case. At the Microsoft Build Developer Conference of that year, finally, we witnessed the official stamp to this news.

However at that point in time. it was only limited to the Windows 10 Technical Preview. Fast forward to this date, and this has now been expanded to every Windows 10 version (including our beloved Home). So without further ado, here are the required instructions to run Linux commands inside Windows 10 without using any Virtual Machine.



STEP 1: Enable Developer Mode in Windows 10

  1. Use the Windows+I shortcut key combinations to launch the Settings page.
  2. Within that, go to Update and Security.
  3. Then select ‘For Developers’ from the left-hand menu bar.
    windows 10 developer mode
  4. Select the Developer Mode option and choose Yes in the confirmation dialog box.
    windows 10 developer mode confirmation
  5. Windows will now search for and add new Developer Mode packages, this might take a few minutes.
  6. Once done, reverify that the Developer Mode option is selected, if not, then do so right away. Then proceed to the next step to run Linux commands on Windows 10 without using Virtual Machine.
    windows 10 developer mode selected

STEP 2: Enable Windows Subsystem for Linux

  1. Now that the Developer Mode has been enabled, go to the Start menu and search “Turn Windows features on or off” (without quotes).
  2. Open it and enable Windows Subsystem for Linux as well as Virtual Machine Platform and click OK.
    enable subsystem linux windows 10
  3. Windows will now search for some required files. This might take a few minutes.
  4. Once done, click on Restart Now in the dialog box that appears.
  5. Once your PC reboots, head over to the Start menu and launch PowerShell as an administrator.
    run powershell as admin
  6. Now copy-paste the below command and hit Enter:
    Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -norestart
    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all

    powershell command enable linux windows 10

  7. Once the command is executed successfully, restart your PC (optional but recommended).
  8. Now proceed to the final step to run Linux commands inside Windows 10 without using any Virtual Machine.

STEP 3: Install Linux Distribution on Windows 10

Linux Distribution? Yes! In this (final) section we will be installing Ubuntu, the OS based on the Debian Linux distribution. Here are the required instructions for the same.

  1. Go to the Microsoft App Store and search Ubuntu.
  2. Download and install it onto your PC. Once installed, launch it.install ubuntu windows 10
  3. It will then install the necessary dependencies, which might take a few minutes.
  4. Once that is done, you just have to create your username and password.install linux inside windows 10
  5. The password that you would be typing won’t be shown in the window, so make sure you are typing the correct one (see the screenhsot above, I ended up messing my password the first time 😀 )
  6. Just to reverify that everything is workig well and good, lets try the pwd command:
    pwd linux command on windows 10

So with this, we conclude the guide on how to run Linux commands inside Windows 10 without using any Virtual Machine. If you have anyq ueries concerning the aofremntioned instructions, do let us know in the comments section below. We will get back to you with a solution at the earliest.


Share: