How to Run Linux Commands on Windows With WSL 2

The Windows Subsystem for Linux 2 is built upon the success of the original WSL, and the newer WSL 2 brings more power and reliability for users. It’s vital that you understand how to use Linux commands and utilities on the Windows Subsystem for Linux 2.

Read on as we discuss what WSL 2 is and how you can use Linux commands on Windows 10 and 11.

4

Is It Possible to Run Linux Commands on Windows 10 and 11 Without a Virtual Machine?

Yes, you can run Linux commands in Windows 10 and 11 without setting up a virtual machine, which is made possible through the incredible Windows Subsystem for Linux 2. You no longer need to configure a sophisticated virtual machine usingOracle VirtualBox or VMWareto use Linux. You can use a Linux kernel natively on Windows 10 or 11 with minimal installation.

you’re able to choose from a list of Linux distributions that are supported by WSL 2(including Ubuntu and Kali Linux) or import any Linux distro to work with WSL 2 as a TAR file. With the Windows Subsystem for Linux 2, Windows users can directly use Linux command-line tools, applications, and utilities without extra installation steps. It’s to configure WSL 2 on Windows 10 and 11 with a basic Linux distribution such as Ubuntu.

Different Linux files and directories displayed on Terminal

How to Get Started With WSL 2

The Windows Subsystem for Linux 2 is available to users running Windows 10 (Build 19041 and higher) and Windows 11; if you’re running an older version of Windows 10, you’ll have to install WSL 2 manually. Fortunately, Microsoft makes it easy to install and set up a Linux distro in WSL 2. To install WSL 2 with Ubuntu:

How to Use Linux Commands on WSL 2

To use Linux commands on Windows, it’s possible to use the Windows Subsystem for Linux–a Linux kernel that directly integrates with the Windows operating system. Here’s how you can begin using Linux commands and utilities on a WSL 2 running Ubuntu:

Linux has a lot of commands and built-in utilities that can be accessed via the terminal. These commands help you manage the file system, install packages, run apps, edit files, and more. It’s no wonder, then, that regular people love using the Linux command line.

muo-windows-linux-wsl-featured

Read on for a list of commands that will help you use the Windows Subsystem for Linux:

If you’re new to Linux, you must be overwhelmed by the many commands and utilities Linux has to offer, but don’t fret; over time, you’ll get the hang of it. Before long, you’ll be using Linux commands as if they were second nature to you, without needing to resort to virtual machines or performing a dual boot.

most-used-linux-terminal-cmds

Use Linux Commands on Windows With Ease

Linux is a powerful operating system that requires you to get accustomed to its command line. You can manage every aspect of your WSL 2 through the Linux terminal. Learning the various Linux commands can be frustrating initially, but once you push yourself to use the command line, you’ll be more confident.

This simple cheat sheet will help you get comfortable with the Linux command line terminal in no time.

A collage showing stills from The Walking Dead, The Wire, House of Cards, Line of Duty, Manifest, and the Man in the High Castle

So much time invested, and for what?

Unlock a world of entertainment possibilities with this clever TV hack.

OneDrive is one of the best, but it has a catch.

When your rival has to bail out your assistant.

Every squeak is your PC’s way of crying for help.

Technology Explained

PC & Mobile