Introduction to Linux

15 minLesson 1 of 16

Learning Objectives

  • Understand what Linux is and its role in DevOps
  • Identify major Linux distributions
  • Set up a Linux environment for learning

What is Linux?

Linux is an open-source operating system kernel that powers the majority of servers, cloud infrastructure, and DevOps tooling worldwide. Understanding Linux is the foundation of any DevOps career.

Why Linux for DevOps?

  • Server dominance — Over 90% of cloud servers run Linux
  • Open source — Free to use, modify, and distribute
  • Automation friendly — Powerful command-line interface
  • Container foundation — Docker and Kubernetes run on Linux
  • Tool ecosystem — Most DevOps tools are Linux-native

Linux Distributions

A Linux distribution (distro) packages the Linux kernel with additional software, package managers, and configurations.

DistributionUse CasePackage Manager
UbuntuGeneral purpose, beginnersapt
CentOS/RockyEnterprise serversyum/dnf
DebianStability-focused serversapt
AlpineContainers (minimal)apk
Amazon LinuxAWS workloadsyum

Setting Up Your Environment

For this course, we recommend using Ubuntu 22.04 LTS. Here are your options:

Option 1: Virtual Machine

# Using VirtualBox or VMware
# Download Ubuntu ISO from ubuntu.com
# Create a new VM with 2GB RAM, 20GB disk

Option 2: WSL (Windows Users)

# Open PowerShell as Administrator
wsl --install -d Ubuntu-22.04

Option 3: Cloud Instance

# Create a free-tier EC2 instance on AWS
# Or use a free VPS from Oracle Cloud

Your First Commands

Once you have a Linux terminal open, try these commands:

# Check your Linux version
cat /etc/os-release
 
# See who you're logged in as
whoami
 
# Print the current date
date
 
# See your current directory
pwd

Summary

In this lesson, you learned:

  • Linux is the foundation of modern DevOps infrastructure
  • There are many distributions, each suited for different purposes
  • You can run Linux via VM, WSL, or cloud instances
  • Basic commands help you interact with the system

Next Steps

In the next lesson, we'll dive into the Linux file system and learn to navigate directories like a pro.