WSL
While Linux and macOS come with a built-in Linux-like environment, Windows users need to install the Windows Subsystem for Linux (WSL) to access a Linux terminal. You can find the installation guide at Microsoft Learn - Install WSL.
Here is a sample procedure to install WSL with an Ubuntu Linux distribution:
- Open PowerShell or Command Prompt as Administrator: Right-click the Start Menu and select “Windows PowerShell (Admin)”.
- Run the command:
wsl --install
. - Once the installation completes, restart your computer.
- After restarting, search for “Ubuntu” in the Windows Start Menu to launch the WSL Ubuntu app.
- On the first launch, WSL will take some time to initialize. You will then be prompted to set up a username and password for the first user.