LUNAROPS · OPERATIONAL UPLINK 100% UPTIME 1,247d POSTS 893 JEFF.MOON@LUNAROPS.DEV UTC --:--:--

What is Linux? A Beginner's Introduction

linuxbeginneroperating-systemopen-source

Linux powers most of the internet, runs on everything from smartphones to supercomputers, and is essential knowledge for anyone in tech. Here’s what you need to know.

What is Linux?

Linux is an open-source operating system kernel created by Linus Torvalds in 1991. When people say “Linux,” they usually mean a complete operating system (called a “distribution”) built around the Linux kernel.

The Linux Family Tree

Linux Kernel (Linus Torvalds, 1991)
    │
    ├── Debian Family
    │   ├── Debian
    │   ├── Ubuntu
    │   └── Linux Mint
    │
    ├── Red Hat Family
    │   ├── RHEL (Red Hat Enterprise Linux)
    │   ├── CentOS / Rocky Linux / AlmaLinux
    │   └── Fedora
    │
    ├── Arch Family
    │   ├── Arch Linux
    │   └── Manjaro
    │
    └── Others
        ├── SUSE
        ├── Gentoo
        └── Alpine

Why Linux Matters

1. Servers Run Linux

Over 90% of web servers run Linux. If you deploy applications, you need Linux skills.

2. Development Environment

Many development tools work best on Linux. Even macOS is Unix-based, sharing similar commands.

3. Containers and Cloud

Docker, Kubernetes, and cloud platforms are Linux-native. Containers are literally Linux processes.

4. It’s Free and Open Source

No licensing costs. You can inspect, modify, and distribute the code.

Linux vs Windows vs macOS

Aspect Linux Windows macOS
Cost Free Paid Hardware-bundled
Source Open Closed Partially open
Servers Dominant Minority Rare
Desktop ~2% ~75% ~15%
Customization Unlimited Limited Limited

Getting Started

Option 1: Virtual Machine

Install VirtualBox or VMware and run Linux in a VM:

1
2
3
# Download Ubuntu ISO from ubuntu.com
# Create VM with 2GB RAM, 20GB disk
# Boot from ISO and install

Option 2: Windows Subsystem for Linux (WSL)

1
2
3
4
# In PowerShell as Administrator
wsl --install

# Restart, then open Ubuntu from Start menu

Option 3: Cloud Server

Spin up a cheap VPS on DigitalOcean, Linode, or Hetzner for ~$5/month.

Option 4: Dual Boot

Install Linux alongside Windows. More complex but full native performance.

Your First Commands

Once you have Linux running:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Where am I?
pwd

# What's in this directory?
ls -la

# Who am I?
whoami

# System information
uname -a

# Check disk space
df -h

# Check memory
free -h

The Shell

The shell is your command-line interface. Common shells:

  • Bash - Default on most systems
  • Zsh - Popular alternative (default on macOS)
  • Fish - User-friendly with great defaults
1
2
3
4
5
# Check your shell
echo $SHELL

# List available shells
cat /etc/shells

Key Concepts

Everything is a File

In Linux, everything is represented as a file:

  • Regular files
  • Directories
  • Devices (/dev/sda)
  • Processes (/proc)
  • Network sockets

Permissions

Every file has:

  • Owner
  • Group
  • Permissions (read, write, execute)
1
2
ls -l
# -rw-r--r-- 1 user group 1234 Jan 10 10:00 file.txt

Root User

root is the superuser with full system access. Use sudo to run commands as root:

1
sudo apt update

Choosing a Distribution

For Beginners

  • Ubuntu - Most popular, great community support
  • Linux Mint - Ubuntu-based, Windows-like interface
  • Pop!_OS - Ubuntu-based, great for developers

For Servers

  • Ubuntu Server - Popular, long-term support
  • Debian - Stable, conservative updates
  • Rocky Linux - RHEL-compatible, enterprise-ready

For Learning

  • Arch Linux - Learn by building from scratch
  • Fedora - Cutting-edge, close to upstream

Next Steps

  1. Install Linux (VM or WSL is fine)
  2. Learn basic navigation commands
  3. Understand the file system hierarchy
  4. Practice file permissions
  5. Learn package management

Linux is a journey, not a destination. Start with the basics and build from there.

Comments