All Tech Guides

Tech Guide

Get Started with Linux

An introduction to the Linux operating system and its distributions, ways to install it safely, and a beginner example using the Linux command line.

Operating Systems Beginner Updated October 2026

Disclaimer & Important Cautions

These Tech Guides and instructions are provided in good faith as a general educational guide. Technology changes over time, and settings, software versions, installation steps, and security practices may vary by system.

I cannot guarantee that these steps will work in every environment, and I am not responsible for data loss, configuration problems, system errors, security issues, downtime, or other problems that may result from following this guide.

  • Back up important files before installing any operating system.
  • Installing Linux directly on a computer (dual-boot or replacing Windows/macOS) can erase data if done incorrectly. Beginners should start with WSL or a virtual machine.
  • Download Linux only from the official distribution websites, and verify the download when possible.
  • Be careful with commands that start with sudo or that delete files (rm). They run without asking for confirmation.
  • When in doubt, consult official documentation or a qualified technician.

Overview

Linux is a free, open-source operating system. It began in 1991 when Linus Torvalds released the Linux kernel, the core that manages a computer's hardware. Combined with tools from the GNU project and many others, it became a complete operating system.

Linux runs most of the world's web servers and cloud computing, all of the top supercomputers, Android phones, and countless devices such as routers and smart TVs. Learning Linux, especially its command line, is a core skill for programming, databases, web servers, and data science.

This guide explains Linux distributions, the safest ways for a beginner to install Linux, and a hands-on beginner example in the terminal.

Main idea: You don't have to replace your current operating system to learn Linux. Run it alongside Windows or macOS with WSL or a virtual machine, then practice in the terminal.

Linux Distributions

A distribution ("distro") is a complete Linux operating system: the Linux kernel plus a package manager, a set of software, and usually a graphical desktop. All distributions share the same core commands, so what you learn in one carries over to the others.

DistributionFamilyPackage managerGood for
UbuntuDebianaptBeginners, classes, servers, cloud. The most widely documented distribution, and the default in WSL.
Linux MintDebian / UbuntuaptPeople coming from Windows who want a familiar desktop.
DebianDebianaptStable servers; the base that Ubuntu and Mint are built on.
FedoraRed HatdnfDevelopers who want newer software; related to Red Hat Enterprise Linux.
Red Hat Enterprise Linux (RHEL), Rocky Linux, AlmaLinuxRed HatdnfBusiness and enterprise servers.
Arch LinuxArchpacmanExperienced users who want to build their system piece by piece.

Many distributions also offer a long-term support (LTS) release that receives updates for years. For example, Ubuntu 26.04 LTS was released in April 2026 with five years of standard support. This guide uses Ubuntu, but the commands work on most distributions.

Ways to Install Linux

OptionHow it worksRisk to your filesRecommended for
WSL (Windows only)Runs a real Linux distribution inside Windows, mainly through the terminal.NoneWindows users learning the command line. See the Windows WSL guide.
Virtual machineRuns Linux as a "computer inside your computer" in an app such as VirtualBox or UTM.NoneAnyone who wants the full Linux desktop. Covered below.
Live USBBoots Linux from a USB drive without installing it.None, if you don't choose InstallTrying Linux on real hardware.
Dual boot / full installInstalls Linux on your computer's drive, next to or instead of your current system.High if done incorrectlyExperienced users, or a spare computer.

Requirements for a Virtual Machine

  • At least 8 GB of RAM (16 GB is more comfortable), since Ubuntu 26.04 Desktop needs about 6 GB on its own.
  • At least 30 GB of free disk space.
  • Hardware virtualization enabled in your computer's UEFI/BIOS settings (usually on by default).
  • Administrator privileges to install the virtual machine app.

Install Ubuntu in a Virtual Machine

Choose the tab for your computer:

Installing Ubuntu in a Virtual Machine

Complete your computer's tab first, then the Ubuntu Setup tab. Plan on 45–60 minutes, most of it waiting for downloads and the installer.

The guide covers these major tasks:

  1. Download the Ubuntu installer image (ISO).
  2. Install a virtual machine app.
  3. Create a virtual machine.
  4. Install Ubuntu inside it.
  5. Update Ubuntu.

Beginner Example: Working in the Terminal

The terminal (or shell) is a text window where you type commands. Linux's default shell is usually Bash. Open the Terminal and try the commands below, one at a time. Text after # is a comment explaining the command; you don't need to type it.

Step 1: Find your way around

whoami                 # show your username
pwd                    # print the folder you are in (your home folder)
ls                     # list the files and folders here
ls -l                  # list them with details (size, date, permissions)
cd Documents           # change into the Documents folder
cd ..                  # go back up one level
cd ~                   # go back to your home folder

Step 2: Create folders and files

mkdir linux-practice               # make a new folder
cd linux-practice                  # move into it
echo "Hello, Linux!" > hello.txt    # create a file containing one line
echo "Second line" >> hello.txt     # add another line to the end
cat hello.txt                      # display the file's contents
cp hello.txt copy.txt              # copy a file
mv copy.txt notes.txt              # rename (move) a file
ls -l                              # see the results

Notice that > replaces a file's contents, while >> adds to the end.

Step 3: Install software with the package manager

The tree command shows folders as a tree. It usually isn't installed by default, so install it with apt:

sudo apt install tree -y           # enter your password when asked
tree ~/linux-practice

Step 4: Write and run a shell script

A shell script is a text file of commands. Create one with the built-in nano text editor:

nano hello.sh

Type the following into nano:

#!/bin/bash
echo "Hello, $USER!"
echo "Today is $(date +%A)."
echo "You have $(ls | wc -l) items in this folder."

Press Ctrl + O then Enter to save, and Ctrl + X to exit nano. Then make the script executable and run it:

chmod +x hello.sh
./hello.sh

Example output:

Hello, student!
Today is Tuesday.
You have 3 items in this folder.
Check yourself: ls -l in your linux-practice folder shows hello.txt, notes.txt, and hello.sh, and ./hello.sh prints three lines.

Useful Tips

  • Press Tab to auto-complete file and folder names.
  • Press the Up arrow to bring back previous commands.
  • Type man ls (or man followed by any command) to read its manual. Press q to quit.
  • rm deletes files permanently; there is no Recycle Bin or Trash in the terminal.

Next Steps

  • On Windows, try Linux without a virtual machine using WSL.
  • Install Git on Linux with sudo apt install git.
  • Install Python, Java, or PHP with the package manager and practice programming in Linux.
Final Notes:
  • Linux is a free, open-source operating system that comes in many distributions.
  • Ubuntu is a good first distribution, and its commands carry over to most others.
  • Learn Linux safely with WSL or a virtual machine before attempting a full installation.
  • Use sudo only when needed, and double-check commands that delete files.
Explore more technology resources

Return to the complete collection of installation and configuration guides.

Browse All Tech Guides