๐Ÿš€ Day 1 of Tools for Developers: WSL (Windows Subsystem for Linux)

Welcome to Day 1 of my 30 Days โ€“ 30 Tools for Developers series!
Today weโ€™re starting with a tool that bridges the gap between Windows and Linux โ€” WSL (Windows Subsystem for Linux).

If youโ€™ve ever wanted the power of Linux without leaving your Windows machine, WSL is your best friend.


What is WSL?

WSL lets you run a complete Linux environment directly inside Windows. No dual boot. No heavy virtual machine. Just open your terminal and start using Linux commands like you would on a native Linux system.

It supports installing full Linux distributions such as Ubuntu, Debian, Arch, and more โ€” all from the Microsoft Store.


Why Developers Use WSL

  • ๐Ÿ–ฅ Seamless Workflow โ€“ Use Windows and Linux side-by-side.

  • โšก Lightweight โ€“ No massive VM overhead.

  • ๐Ÿ’ป Perfect for Development โ€“ Especially for web, DevOps, and cloud environments.

  • ๐Ÿ”„ Cross-OS Access โ€“ Easily share files between Linux and Windows.


WSL1 vs WSL2

WSL1

  • Translates Linux system calls to Windows calls.

  • Great for working with files stored on the Windows filesystem.

  • Uses less disk space but lacks full Linux kernel compatibility.

WSL2

  • Runs a real Linux kernel in a lightweight VM.

  • Better performance for Linux-native tools like Docker or Kubernetes.

  • Full Linux compatibility.

๐Ÿ’ก Quick Tip:
If youโ€™re into DevOps, containerization, or Kubernetes, WSL2 is the way to go. If your work revolves around Windows files, WSL1 might feel faster.


Getting Started with WSL

  1. Open PowerShell as Administrator.

  2. Run:

     wsl --install
    
  3. Restart your machine and choose your Linux distribution from the Microsoft Store.


Conclusion
WSL is a must-have for any developer working in a mixed Windows/Linux environment. Whether you choose WSL1 or WSL2 depends on your workflow โ€” but either way, it will make your dev life smoother.

0
Subscribe to my newsletter

Read articles from Shaharyar Shakir directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Shaharyar Shakir
Shaharyar Shakir