The Wayback Machine - https://web.archive.org/web/20240822105405/https://www.geeksforgeeks.org/how-to-install-linux-on-windows-powershell-subsystem/
Open In App

How to Install Linux on Windows PowerShell Subsystem?

Last Updated : 06 Oct, 2021
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

There are several ways to Install a Linux subsystem on your Windows PC Powershell Environment. It is good for learners, but it is recommended using original Linux OS if you are a developer as the Subsystem lacks the pre-installed Linux tools.

Before we begin installing a Linux subsystem, we need to first enable a Windows feature for Subsystems.

Enabling Windows Subsystem Feature for Linux:

To install Linux Subsystem, there is a need to Turn Windows features ON. Steps to do the same are as follows:

Step 1: Search and open Turn Windows features on or off in Start Menu.
Linux-on-PowerShell-00
 
Step 2: Look for Windows Subsystem for Linux and enable it.
Linux-on-PowerShell-02
 
Step 3: Once the installation is over, reboot your system to finish adding the changes.
Linux-on-PowerShell-03
 
Downloading and Installing Linux OS:
There are two ways to download and install any Linux OS in the Windows Subsystem:

  • Downloading from the Microsoft Store
  • Downloading using Windows PowerShell

Downloading and Installing using Microsoft Store:

Step 1: Open MS Store and search for Linux. Now, download any of the listed Linux OSs.
Linux-on-PowerShell-04
 
Step 2: Click on the Get button and begin with the downloading of Kali Linux OS.
Linux-on-PowerShell-05
Linux-on-PowerShell-06
 
Step 3: Once the Installation is over click on the Launch button.
Linux-on-PowerShell-07
 
Step 4: Begin with the final installation process on the command-line.
Linux-on-PowerShell-08
 
Step 5: Provide a Username and password for your Linux OS and finish the installation process.
Linux-on-PowerShell-09

Downloading using command-line:

Step 1: Search for Windows Powershell in the Start Menu and open it.
Linux-on-PowerShell-01
 
Step 2: Type the following command to install Linux OS and press Enter:

Invoke-WebRequest -Uri https://wsldownload.azureedge.net/Ubuntu_1604.2019.523.0_x64.appx -OutFile Ubuntu.appx -UseBasicParsing
Add-AppxPackage .\Ubuntu.appx

Linux-on-PowerShell-11-01
 
Step 3: Launch Ubuntu from the Start Menu and begin with the rest of the Installation process:
Linux-on-PowerShell-151
Linux-on-PowerShell-13
 
Step 4: Provide Username and password to setup your Linux OS and finish the installation process.
Linux-on-PowerShell-14
 
Once the installation of the Linux Subsystem is over, it can be launched anytime with Windows PowerShell. Just type the name of the OS in the PowerShell and press Enter.
Linux-on-PowerShell-12


Previous Article
Next Article

Similar Reads

How to Install the Windows Subsystem for Linux on Windows 11?
As a programmer, it is very important to test software on multiple platforms. However, it can be very tedious and inefficient to use multiple virtual machines to achieve the same. Thankfully, this process can be simplified if you are using Windows and wish to run a Linux distribution - with WSL. WSL, or Windows Subsystem for Linux, lets developers
2 min read
How to Install Git on Windows Subsystem for Linux?
Git is an open-source distributed version control system developed to handle everything from simple to complex projects with performance and speed. Git software allows a team or group of developers to work together, with all using the same files and folders. It gradually reduces the confusion that tends to happen when multiple people are editing th
2 min read
Install Windows Subsystem for Linux (WSL)
The Windows Subsystem for Linux (WSL) lets developers run a GNU/Linux environment on Windows, without the overhead of a traditional virtual machine or dual boot setup. This incorporates Linux-like functionality on Windows OS without the overhead of running another OS in parallel, therefore, reducing resource consumption. This makes WSL a go-to choi
4 min read
How to set up OpenSSH server in Windows Subsystem for Linux (WSL)?
In this article, we will elaborate on how you can set up an OpenSSH server in WSL. Also, how can we locally connect to Ubuntu via cmd from the Windows OS we are running locally in our system? Use the Windows Powershell here, it would be easy to do the steps. Users need to have Windows Subsystem for Linux (WSL) installed and setup in their device. T
8 min read
What is Windows Subsystem for Linux (WSL)
In today's computing landscape, we often require different operating systems for our tasks to execute. The demand for Linux-based Operating systems is always high among Windows users. Now to use Linux we either need Virtual Machines or Dual Boot System. Windows Subsystem for Linux solves this problem gives users the privilege to use Linux on Window
7 min read
How To Install and Update Azure PowerShell on Windows Machine?
Pre-requisite: Azure Azure PowerShell is a command-line tool that allows you to manage Azure resources from the command line. It is a powerful tool that can be used to automate tasks, provision resources, manage users and policies in Azure a,d also for troubleshooting problems. Actually, Azure PowerShell is built on top of Windows PowerShell, so if
3 min read
How to Install PowerShell in Linux?
PowerShell is well-known among Windows administrators. It is a.NET-based task-based command-line shell and scripting language. You can quickly automate tasks for operating system maintenance and much more with PowerShell. PowerShell was once only available for Microsoft Windows. This admin tool, on the other hand, can now be installed and used on L
2 min read
How to Download and Install Windows Movie Maker on Windows 10?
Movie Maker video is one of the best video editors available on the Microsoft store itself and is absolutely free. Movie maker video editor is a single-OS software, i.e. it works only in windows, and not on macOS, and Linux. Movie maker has more than 10 million users worldwide. Some of the very cool features of movie maker video editors are that th
2 min read
Brutal - Create various Payload, PowerShell Attack, Virus Attack and Launch Listener for a HID
Brutal is an all-in-one toolkit for generating various types of payloads, back-doors, and listeners. It is a Bash Script tool with a human familiar interface. This tool is available on the GitHub platform for free and it is open for contribution. We can generate various types of payloads for getting the passwords from local computers or to get the
2 min read
How to Create Management Groups in Azure Through GUI and PowerShell?
Pre-requisites: AZURE Azure's management groups are a hierarchical organizational structure that makes it possible to centralize the management of numerous Azure subscriptions. With management groups, you can apply policies and enforce compliance across your subscriptions and resources, making it easier to manage your resources and ensure that they
3 min read
How to find the file properties using powershell
PowerShell is a modern command shell that includes the best features of different shells . Unlike the other shells which only accept and return the text but in PowerShell it is different it returns the object in the .NET objects. In this article we will find out certain commands to find the file properties using PowerShell. Find the file properties
1 min read
How to find and replace the content from the file or string using PowerShell
PowerShell is a versatile utility that can manage files and folders in various ways. It gives you access to the system's files and directories and lets you create, copy, delete, move, renames, and examine them. Several useful PowerShell cmdlets can read, write, and replace data in files. In this article, we will see how we can find and replace the
2 min read
Create a Log File in PowerShell Script
In this article, we will be discussing a shell script that can be used to report the cumulative connection time for month/year entries found in a system log file. This script can be useful for network administrators or system administrators who need to analyze log files and get an overview of how much time a particular user or IP address has spent
4 min read
How to Update Azure Subscription Tags using PowerShell?
Pre-requisite: Azure Updating Azure subscription tags using PowerShell is a straightforward process that allows you to easily manage and organize resources in your subscription. With PowerShell, you can add, modify, or remove tags from individual resources or apply tags to multiple resources simultaneously. This can help you to better track and man
2 min read
Disk Cleanup Using Powershell Scripts
In this article, we will look at how to delete temporary files, recycle bin data, and run a disc cleanup program in Windows. Windows users sometimes faced low disk space errors with the error "You're running out of space on this PC. Manage storage to view usage and free up some space." When Windows prompts low disk space warning messages, we first
5 min read
How to Run Powershell x86 Inside Visual Studio Code x64?
Windows PowerShell is a popular tool that is used as a command line tool, also called a modern command line tool as it includes the best of the features for popular shells, you may have heard about CMD or command line utility in Windows but the Windows PowerShell is more advance and powerful which is why it is used in Visual Studio Code but it beco
4 min read
How to Install Kali Linux on Windows?
Kali Linux is an open-source Linux distribution based on Debian, designed for sophisticated penetration testing and security auditing. Kali Linux includes hundreds of tools for diverse information security activities such as penetration testing, security research, computer forensics, and reverse engineering. This multi-platform solution is accessib
2 min read
Python - Install Paramiko on Windows and Linux
The high-level python API starts with the creation of a secure connection object. To have more direct control and pass a socket to transport to start remote access. As a client, it's authenticating using a user credential or private key, and checking the server’s host key. Paramiko is a Python library that makes a connection with a remote device th
1 min read
Download and Install Java Development Kit (JDK) on Windows, Mac, and Linux
Setting up a Suitable Development Environment is necessary before one can begin creating Android Applications. It makes it easier for developers to use the tools required to create any Application and ensures that all Operations or Processes run smoothly. Download and Install JDK in order to create Android Application Source Files using the Java or
5 min read
How to install and Run Linux Software in Windows 10 using WSL2?
We often may want to run Linux commands, and work with Linux applications but don't want to install Ubuntu OS, There are several approaches to do this, but the most simple approach is to use Windows Sub System Linux (WSL). In this article, you'll learn the following things: What is WSL2?Prerequisites to set up WSL2.How to set up WSL2 in Windows 10?
2 min read
Download & Install Terraform on Windows, Linux
A vital part of efficiently handling and provisioning cloud resources is infrastructure as code, or IaC. HashiCorp's open-source Terraform tool has become a top option for infrastructure-as-a-service (IaC) due to its ease of use, adaptability, and wide range of support for cloud providers and services. Terraform is crucial for learning, regardless
8 min read
How to Install Ruby on Rails on Windows and Linux?
Ruby on Rails or just known as rails, is free and open-source software written in Ruby language under the MIT license. It is a server-side web application development framework, designed to make programming web applications easier by making assumptions about what every developer needs to get started. Rails is a model–view–controller (MVC) framework
2 min read
How to Install Requests in Python - For Windows, Linux, Mac
Requests is an elegant and simple HTTP library for Python, built for human beings. One of the most famous libraries for Python is used by developers al over the world. This article revolves around how one can install requests library of Python in Windows/ Linux/ macOS using pip. Install Requests Module in Python in Window For installing requests in
4 min read
How to disable superfetch in windows 10 or windows 11?
Windows Vista introduced the Superfetch (SysMain) capability, which is still a part of the Windows operating system. It is a built-in service designed to speed up startup times and enhance performance by preloading frequently used apps in RAM. It was, however, primarily developed for older PCs. For contemporary PCs running Windows 10 and Windows 11
4 min read
How to Upgrade From Windows 10 to Windows 11 For Free?
Windows 11 is a very popular operating system by Microsoft. Windows 11 is free for Windows 10 PC that meet some minimum hardware requirements. There is no need to spend money on a brand-new computer when you can upgrade to Windows 11 for free. Besides this, Microsoft officially announced that existing PCs (original versions) will be offered to upgr
5 min read
How to Install Ubuntu on Windows using VMware?
VMWare, a short form of "VirtualMachine Ware". A cloud computing company that develops virtualization software, management, and networking interfaces or tools. It provides hypervisor tools or products that help in running virtual machines, clusters, and containers. By using this software we can virtualize the computer with required computing resour
2 min read
How to Install Only Office Desktop Editors on Windows?
The only office is free and open-source software. It is created by Ascensio System SIA. Its headquarter is in Riga, Latvia. Only office has many features like an online document editor, corporate communication, mail and project management tool, etc. Its license is AGPL-3.0-only. It is used on operating systems like, Windows; macOS; Linux; Android;
3 min read
How to Install Mutagen for Python on Windows?
There are many important python modules or packages from which Mutagen is used for handling the audio metadata also known as music metadata, it is an independent python standard library and is available open source and free for windows, macOS, and Linux operating systems, etc. Here we will learn how to install the Mutagen module on the windows oper
2 min read
How to Download and Install FastStone Capture on Windows?
FastStone Capture is a robust, portable, and feature-rich screen capture and screen recording program. It enables you to quickly capture and annotate anything that appears on the screen, including windows, objects, menus, complete screens, fixed regions, freehand rectangles, and scrolling web pages. You can record all screen activity, including cha
2 min read
How to Download and Install Power DVD on Windows?
A universal media player for video files, images, music, and movie discs is CyberLink PowerDVD. In 2016, PowerDVD became the first and only software player in the world to pass the BD-ROM 4.0 PC Application Software License process and received certification from the Blu-ray Disc Association (BDA) for the playback of Ultra HD Blu-ray Discs. The ide
2 min read
three90RightbarBannerImg