How to Get the Linux Terminal Using Windows Subsystem for Linux
If you’re a developer or a Linux enthusiast using a Windows PC, you might feel the need for the Linux terminal on your machine. While it’s possible to install a Linux OS alongside Windows, it requires partitioning your hard drive and dual-booting your system. But, there’s an easier way to get the Linux terminal on your PC without the hassle of installing Linux OS.
Using Windows Subsystem for Linux (WSL), an optional Windows feature available on Windows 10 and later versions, you can run Linux commands and tools directly on Windows. In this article, we’ll guide you on how to get the Linux terminal using WSL.
Step 1: Enable Windows Subsystem for Linux
The first step is to enable the Windows Subsystem for Linux on your Windows machine. To do this, follow the below steps.
1. Open Windows PowerShell as Administrator.
2. Run the following command:
`dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart`
3. Once the feature is enabled, restart your PC.
Step 2: Install a Linux Distribution
After enabling the Windows Subsystem for Linux, you need to choose and install a Linux distribution of your choice. There are a few options available, including Ubuntu, Debian, Kali Linux, and more. Follow the below steps to install a Linux distribution via the Microsoft Store.
1. Open the Microsoft Store on your Windows PC.
2. Search for the Linux distribution you want to install.
3. Click on the Linux distribution and select the “Get” option to install it.
4. Once the installation is complete, launch the Linux distribution from the Start menu.
Step 3: Launch the Linux Terminal
After installing the Linux distribution, you can now access the Linux terminal on your Windows machine. Follow the below steps to launch the Linux terminal.
1. Open the Start menu and search for the Linux distribution you installed.
2. Click on the Linux distribution to open it.
3. Wait for the distribution to initialize.
4. Once initialized, you’ll be prompted to create a new user account with a username and password. Enter the details and press Enter.
5. You’ll now have access to the Linux terminal running on your Windows PC.
Wrapping Up
With the Windows Subsystem for Linux, it’s easy to get the Linux terminal on your Windows PC. By following the above steps, you can easily enable the feature, install a Linux distribution of your choice, and launch the Linux terminal. This feature is particularly useful for developers who want to use Linux tools and commands on their Windows machine.