Skip to content
Tutorials Center
My learning

Topics

Lesson 29 of 55 ยท Operating Systems

Linux for Newcomers

Meet Linux: what the kernel and a distribution are, popular distros, desktop environments, package managers, the file system layout and permissions, with Python demos you can run.

Linux runs most of the Internet's servers, every Android phone (the kernel underneath), many supercomputers, routers, TVs and cars. On the desktop it is a free alternative to Windows and macOS that millions of developers use every day. It is also a good system to understand because its design is open: you can see, change and share every part.

This lesson explains what Linux actually is, how to choose a distribution, what you will see on the screen, how software is installed with a package manager, and the basics of the file system and permissions. It continues from Windows at a Glance, and for real command-line practice you can follow Command Line First Steps and the full Linux tutorial.

Linux is a kernel; a distribution is a whole system

Strictly speaking, Linux is only the kernel: the core of the operating system that manages the CPU, memory, devices and processes (see What an Operating System Does). A usable computer also needs a shell, tools, libraries, a desktop and software. A distribution (distro) packages the Linux kernel together with all of that, chooses defaults, and provides updates and a software catalogue.

flowchart TD
  A["Applications<br/>browser, office, games"] --> B["Desktop environment<br/>windows, panels, settings"]
  B --> C["System software<br/>shell, libraries, init system, package manager"]
  C --> D["Linux kernel<br/>processes, memory, drivers, file systems"]
  D --> E["Hardware"]

A distribution is the whole stack above the hardware; Linux itself is the kernel layer.

Linux is free and open-source software: the source code is public, anyone may use it, study it, modify it and share it, under licences such as the GPL (see Digital Ethics and Licensing). "Free" refers to freedom first; most distributions also cost nothing.

Choosing a distribution

There are hundreds of distributions, but they come in families that share a package system.

Family Examples Character
Debian / Ubuntu Ubuntu, Linux Mint, Debian, Pop!_OS The most popular for beginners; large software catalogue; apt
Fedora / Red Hat Fedora, Red Hat Enterprise Linux, Rocky Linux Newer software (Fedora) or long-term enterprise support; dnf
Arch Arch Linux, Manjaro, EndeavourOS Rolling releases, you build the system you want; pacman
SUSE openSUSE, SUSE Enterprise Strong in Europe and in enterprise; zypper
Special purpose Alpine (tiny, containers), Kali (security testing), Tails (privacy) One job done well

For a first try, Linux Mint or Ubuntu are friendly choices. Beginners should avoid distributions that expect a lot of manual setup. You can try Linux without installing it: boot from a live USB stick, run it from the stick, or use a virtual machine or Windows' built-in WSL (Windows Subsystem for Linux) to practise safely.

The desktop

Linux does not force one look. The desktop environment is a separate component, so the same distribution can look very different:

  • GNOME: clean, minimal, touch-friendly (default on Ubuntu and Fedora).
  • KDE Plasma: highly customizable, familiar for Windows users.
  • Xfce, LXQt: light, fast, good for older hardware.
  • Cinnamon, MATE: traditional layouts with a panel and menu (Linux Mint).

All provide windows, a menu or launcher, a file manager and settings. Under them is the display server (Wayland or X11) that draws things on the screen. Because desktops are replaceable, a bug in one does not stop the system, and you can even install several and choose at sign-in.

Installing software with a package manager

Instead of downloading installers from many websites, Linux uses a package manager: a tool that fetches software from trusted repositories, installs it with all its dependencies (other packages it needs), verifies it and later updates or removes it cleanly. Most desktops add a graphical "Software" store on top.

Task Debian / Ubuntu (apt) Fedora (dnf) Arch (pacman)
Refresh the package list sudo apt update sudo dnf check-update sudo pacman -Sy
Install a package sudo apt install vlc sudo dnf install vlc sudo pacman -S vlc
Update all software sudo apt upgrade sudo dnf upgrade sudo pacman -Syu
Remove a package sudo apt remove vlc sudo dnf remove vlc sudo pacman -R vlc

sudo means "run this as the administrator (root) just for this command", and asks for your password. Universal formats such as Flatpak and Snap bundle an app with its dependencies so it runs on any distribution.

Package managers are a security advantage: software comes from a signed source, and one command updates everything, not just the operating system.

Python How a package manager resolves dependencies

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Everything is a file, in one tree

Linux has one directory tree starting at the root /. There are no drive letters: other disks and USB sticks are mounted at folders inside the tree. Paths use forward slashes and are case sensitive (Notes.txt and notes.txt are different files).

Directory Purpose
/home/yourname Your personal files and settings (your home folder, written ~)
/etc System-wide configuration files
/usr Installed programs and libraries
/var Data that changes: logs, caches, databases
/tmp Temporary files
/bin, /sbin Essential commands
/dev Devices appear as files
/mnt, /media Mount points for extra disks and USB drives

Even hardware is presented as files, which is why one set of tools works on everything. Hidden files start with a dot (.config). See File Systems for the general ideas.

Users, root and permissions

Linux is a multi-user system from the start. Every file has an owner, a group, and three sets of permissions for owner, group and others: r (read), w (write) and x (execute). The listing rwxr-xr-- means the owner can read, write and run; the group can read and run; everyone else can only read. Each permission is a number (r=4, w=2, x=1), so rwxr-xr-- is 7 5 4, written 754.

The special user root can do anything; normal users cannot damage the system, and use sudo only when needed. This is a big reason why viruses are rarer on Linux: a program run by an ordinary user cannot change system files.

Python Read and build permission strings

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A few commands to try

You do not have to use the terminal on a desktop distribution, but it is quick and worth knowing:

Terminal
pwd                  # where am I?
ls -l                # list files with permissions
cd ~/Documents       # move to a folder
cat notes.txt        # show a file
sudo apt update      # refresh the package list (Debian/Ubuntu)
man ls               # read the manual for a command

When you want to go further, the Linux tutorial covers the shell, pipes, scripting and administration. Because the terminal looks the same on a laptop, a server and a Raspberry Pi, these skills carry over everywhere.

Pros and cons

Advantages: free, open and customizable; no forced restarts or ads; fast on modest hardware; strong security model; excellent tools for programming and servers; one-command updates.

Limitations: some commercial software (certain games, creative suites) is not available or needs workarounds; hardware support for very new devices can lag; there are many choices, which can confuse newcomers. If you depend on one specific Windows-only program, check before switching, or use dual boot or a virtual machine.

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. What is Linux in the strict sense?

    Linux is the kernel. A distribution combines it with tools, a desktop and software.
  2. 2. What does a Linux package manager do?

    Package managers like apt and dnf install software from repositories and resolve the other packages it needs.
  3. 3. A file has permissions rwxr-xr--. What is that in octal?

    Owner rwx = 7, group r-x = 5, others r-- = 4, so 754.
  4. 4. Where are your personal files stored by default on Linux?

    Each user has a home directory under /home, abbreviated ~.
  5. 5. How do you safely try Linux without changing your current system?

    A live USB boots Linux without installing, and a virtual machine or WSL runs it inside your current system.

Summary

  • Linux is a kernel; a distribution adds tools, a desktop and software, and comes in families such as Debian/Ubuntu, Fedora/Red Hat, Arch and SUSE.
  • Linux is free and open source, runs servers, phones and desktops, and can be tried safely with a live USB, a virtual machine or WSL.
  • The desktop environment (GNOME, KDE, Xfce...) is a replaceable layer on top of the system.
  • Package managers (apt, dnf, pacman) install, update and remove software and its dependencies from trusted repositories; Flatpak and Snap bundle apps.
  • There is one directory tree from /, paths are case sensitive, and your files live in /home/yourname.
  • Every file has an owner, group and r/w/x permissions (like 754); root can do anything, so use sudo sparingly.

Next: Networking Basics. For hands-on practice, continue with the Linux tutorial.