Skip to the content.

WSL (Windows Subsystem for Linux)

WSL is a feature of Windows that allows you to run Linux distributions directly on Windows. This provides a real Linux environment on Windows.

🛠️ WSL Installation (Windows 10/11)

  1. Open PowerShell or CMD as Administrator
  2. Run the following command to install WSL:

    wsl --install
    
  3. Install a Linux distribution (e.g., Ubuntu):

    wsl --install -d Ubuntu
    

    This will install WSL and a Linux distribution. Wait for the process to complete.

  4. Restart your computer when prompted.
  5. Open the “Ubuntu” application from the Start menu.
  6. You can now use Linux commands like apt, bash, wormhole, git, curl, nano, etc.

🚀 Benefits of WSL

Example Commands

apt update
snap install wormhole

Accessing Windows Files

/mnt/c/Users/$USER/Desktop

Example: Sending Files with Wormhole

wormhole send /mnt/c/Users/$USER/Desktop/example.txt

📌 Summary

Or disable it via Windows Features.