WSL Intro — Running Linux Inside Windows

In programming, Linux environments are common. But if your home PC runs Windows, setting up a separate Linux machine is a big hassle. That's where WSL comes in — it's an official Microsoft feature that lets you run Linux directly inside Windows, no second computer required.

What is WSL?

WSL (Windows Subsystem for Linux) is an official Windows feature for running Linux. Microsoft introduced it in 2016, and the current WSL 2 runs a real Linux kernel inside a lightweight virtual machine. Major distributions — Ubuntu, Debian, Kali Linux — are available free from the Microsoft Store and run alongside Windows simultaneously.

That means you don't have to wipe Windows and install Linux. You can keep using Word, Excel, games, and your regular browser on Windows while using a Linux environment specifically for programming or server learning. For teens first approaching Linux, WSL's big advantage is that if something breaks it's easy to recover.

How it works: a kind of virtual machine

From WSL Install to First Use (done in 5 minutes) Open PowerShell as administrator and run one command PS C:\Users\student> wsl --install ↑ Run in PowerShell as Administrator Installing: Virtual Machine Platform Installing: Windows Subsystem for Linux Installing: Ubuntu Successfully installed. ↑ Ubuntu is installed automatically (After restart, Ubuntu launches automatically) student@WIN-PC:~$ uname -a Linux WIN-PC 5.15.x #1 SMP x86_64 GNU/Linux ↑ A real Linux kernel is running student@WIN-PC:~$ sudo apt install python3 ↑ Install Python via apt install for Linux (30 seconds)
Figure 1: Just type "wsl --install". After a restart, Ubuntu runs inside your Windows PC.

WSL uses a hypervisor (virtualization technology) to create a small virtual machine inside Windows and run Linux in it. Unlike a traditional VM (e.g., VirtualBox), WSL starts nearly instantly, shares files easily, and uses much less memory. Just type wsl in the Windows Terminal and you're immediately at a Linux command prompt.

Where WSL is used

Fields Where WSL Is the Standard Environment A strong option when doing web dev, AI experiments, or security learning on Windows ① Web development (Node.js / Python / Ruby) If production runs Linux, practicing in WSL can reduce environment mismatches → Prevents "it works on my machine but not on the server" errors ② Docker / container development Docker Desktop commonly uses WSL 2 on Windows → Useful gateway into container development ③ Machine learning / AI dev (PyTorch / TensorFlow) CUDA drivers and GPU usage are most stable on Linux → One practical option for AI development on Windows ④ Linux command learning / server admin practice Get a Linux environment without buying a new PC — great for learning on an older machine too
Figure 2: WSL is a strong option when you want a Linux environment on Windows, and a useful starting point for programming practice.

Many Windows-based web development teams use Windows + WSL. Since production servers often run Linux, developing in a Linux-like environment reduces environment-mismatch issues. On Windows, Docker Desktop commonly uses WSL 2 under the hood.

How teens can use WSL

If you're starting to learn programming, installing WSL and trying Ubuntu is the standard path. It makes command-line work (cd, ls, mkdir, etc.) natural, lets you install Python with apt install, and makes Git + GitHub much smoother than on Windows alone. Use VS Code with the Remote-WSL extension to edit WSL files directly from Windows.

To start, just run wsl --install to get Ubuntu, then learn just five commands: pwd, ls, cd, mkdir, touch. Add python3 and git and you'll have a solid programming learning environment. Creating your working folder inside WSL rather than on the Windows side causes fewer issues.

Common pitfalls

Three things to watch out for with WSL
  • Editing WSL files directly in File Explorer is slow. Keep files inside WSL (accessible from Windows via \\wsl$\).
  • Linux inside WSL is a separate OS. It needs its own updates: sudo apt update && sudo apt upgrade.
  • Old PCs or those with less than 4 GB RAM may struggle. 8 GB or more is recommended.

How this matters for the future

In web, AI, and data fields, being comfortable with Linux commands significantly speeds up your learning. Server operation, data analysis, machine learning, and security work are all explained primarily in a Linux context, so using WSL makes tutorials and documentation much easier to follow. Schools rarely cover this, but if you're thinking about an IT career, getting familiar with it in high school is worth the effort.

Try this today

3 steps to get started
  1. Open PowerShell as Administrator and type wsl --install. Ubuntu installs automatically.
  2. After restarting, set a username and password when prompted.
  3. Try basic commands — ls, pwd, mkdir test — to get a feel for Linux.

Summary

WSL is an official Microsoft feature that runs Linux smoothly inside Windows. Fields like web development, Docker, machine learning, and security research — all of which assume Linux — become learnable without buying a second computer. For any teen who wants to get serious about programming, it's one of the first tools to set up.

Check WSL is?