Skip to main content

Command Palette

Search for a command to run...

Installing Linux

Published
3 min readView as Markdown

Day 2 of Linux 101 series: Installing Linux

Time to get your hands dirty. Today we're understanding the three ways to install Linux 🧵

  1. The three installation methods:

Virtual Machine (VM) - Run Linux inside your current. OS Dual Boot - Install Linux alongside Windows/Mac. WSL (Windows Subsystem for Linux) - Linux terminal on Windows.

Each serves different needs. Let's understand them deeply.

  1. Method 1: Virtual Machine (VM)

What it actually is:

Software that creates a "virtual computer" inside your real computer. Linux thinks it's running on real hardware, but it's sandboxed. Uses your computer's resources (RAM, CPU, storage) but keeps everything isolated VirtualBox/VMware creates a virtual hardware layer.

Think of it as a computer inside your computer.

  1. VM - How it works:

You allocate resources: "Linux gets 4GB RAM, 2 CPU cores, 25GB storage". Linux installs and runs in this virtual environment Your files, Windows/Mac stay completely untouched. Can snapshot (save states) and rollback anytime.

Your host OS and Linux never interfere with each other.

  1. VM - When to use:

Perfect for:

Beginners learning and might break things. Testing multiple distros simultaneously. Need both OS running at same time. Have 8GB+ RAM (4GB for Linux, 4GB for host).

Pros: 100% safe, easy to delete Cons: 10-15% performance overhead

  1. Method 2: Dual Boot

What it actually is:

Two separate operating systems installed on the same physical machine. Your hard drive gets partitioned (divided into sections). During boot, bootloader lets you choose which OS to start with. Only one OS runs at a time, giving full access to all hardware.

Complete separation, maximum performance.

  1. Dual Boot - How partitioning works:

Your 500GB drive becomes:

300GB - Windows partition (existing) 25GB - Linux root partition (/) 4GB - Linux swap (virtual memory) 171GB - Shared storage or Linux home

Each OS sees only its partitions. GRUB sits on boot partition and manages startup.

  1. Dual Boot - When to use:

Perfect for:

Serious Linux learners committed to the journey Limited RAM (8GB or less) Need maximum performance (no overhead). Want complete Linux capabilities.

Pros: Full hardware access, pure Linux experience Cons: Can't run both simultaneously, partitioning needs care.

  1. Method 3: WSL (Windows Subsystem for Linux)

What it actually is:

Microsoft's translation layer that runs Linux binaries natively on Windows Not a VM, not dual boot. It's a compatibility layer Linux kernel runs alongside Windows kernel. WSL 2 uses lightweight VM but feels native

Best of both worlds for developers.

  1. WSL - How it works:

WSL translates Linux system calls to Windows equivalents Full Linux terminal and command-line tools. Access Windows files from Linux (/mnt/c/) Run Linux servers, development tools. Seamless integration between both systems

Easiest installation: One PowerShell command (wsl --install)

  1. Which method should YOU choose?

VM: Safe practice, can't break anything → Beginners. Dual Boot: Full Linux power, committed learning → Serious learners. WSL: Developer tools, stay on Windows → Windows users who need Linux tools.

Best YT channel for Linux installation tutorials,

Image