
Install WSL (Windows Subsystem for Linux) on Windows β Step by Step Guide
What is WSL?
WSL (Windows Subsystem for Linux) allows you to run Linux directly on Windows without installing a virtual machine or dual boot.
With WSL, you can:
- Use Linux commands (ls, cd, grep, etc.)
- Practice DevOps & Cloud tools
- Run Bash scripts
- Learn Linux without leaving Windows
π This is must-have for DevOps beginners.
Requirements
Before installing WSL, make sure:
- Windows 10 (version 2004+) or Windows 11
- 64-bit system
- Admin access on your laptop
Method 1 (Recommended): Install WSL Using One Command
Step 1: Open PowerShell as Administrator
- Click Start
- Search PowerShell
- Right-click β Run as Administrator
Step 2: Run This Command
wsl --installWhat this command does automatically:
- Enables WSL feature
- Enables Virtual Machine Platform
- Installs Ubuntu (default)
- Installs WSL 2
Step 3: Restart Your System
After installation completes, restart your computer.
β οΈ Restart is mandatory.
Step 4: Set Up Ubuntu (First Time)
After restart:
- Open terminal from Start Menu
- Again run the command β wsl --install
- Wait for setup (5β10 minutes takes approximately )
- Create:
- Username
- Password
π Password will not be visible while typing (this is normal).
Verify WSL Installation
Open Ubuntu terminal and run:
wsl --list --verboseExpected output example:
NAME STATE VERSION
Ubuntu Running 2If version is 2, you are good to go.
Β
If wsl --install fails, your Windows version might be old then :
Advanced / Troubleshooting (Only If wsl --install Fails)
Β
Important Commands You Should Know
wsl --status
wsl --shutdown
wsl --list --verboseWhy WSL is Important for DevOps?
With WSL, you can learn and practice:
- Linux commands
- Bash scripting
- Docker
- Kubernetes
- Git
- CI/CD pipelines
- Cloud tools
π Almost every DevOps tool runs on Linux.
Whatβs Next?
In the next videos, we will cover:
- Linux basic commands
- File & directory structure
- Users & permissions
- Shell scripting
- Real DevOps practice
Final Note
If you are serious about DevOps, installing WSL is your first real step into Linux β without fear and without breaking your system.
.jpg?table=block&id=29d76b1d-f1a8-8072-a9bf-cc78d1c7d881&cache=v2)
