Free Unix and Linux tutorials
Everything here is free. Start at the top if you are new to Unix, or jump to the topic you need.
UnixTools tutorials
- Unix primerA beginner's introduction to Unix and Linux: logging in, the shell, directories and paths, working with files, permissions, getting help and a quick reference of the first commands to learn.
- Shell scriptingLearn Unix shell scripting step by step: variables, quoting, arguments, tests, loops, functions, exit codes, error handling, and how to make scripts robust and portable.
- Runlevels and systemd targetsWhat Linux runlevels 0-6 mean, how they map to systemd targets, how to see and change the current one, set the default, boot into rescue mode, and how runlevels work on AIX, Solaris and the BSDs.
- Boot Linux from USB or DVDHow to download a Linux image, check it, write it to a USB stick on Linux, macOS or Windows, boot from it, try Linux live, install it, and use a live system to rescue a broken computer.
- Dual boot Linux and WindowsHow to install Linux next to Windows 11 on a UEFI computer: back up, deal with BitLocker, shrink the Windows partition, install Linux, choose the system at boot, and fix GRUB or the boot order afterwards.
- Set up a LAMP serverStep-by-step setup of a LAMP web server on Debian 13 or Ubuntu 26.04: Apache with PHP-FPM, MariaDB, a virtual host, free HTTPS with Let's Encrypt, a firewall and the first security settings. Includes the nginx (LEMP) alternative.
- Windows vs LinuxAn honest comparison of Windows and Linux for desktops and servers: cost, software, hardware support, security, updates, administration, and how to move from one to the other.
- Programming on UnixAn overview of programming languages on Unix and Linux: shell, C and C++, Perl, Python, PHP, Java, JavaScript, Go and Rust, with how to install the tools and where to learn each one for free.
- What is CGI?What CGI (Common Gateway Interface) is, how a web server runs a CGI program, a working example in shell, Perl and Python, how to enable CGI in Apache and nginx, the security risks, and what replaced CGI.
- Perl basicsLearn the basics of Perl 5: running scripts, variables, arrays and hashes, regular expressions, reading files, one-liners that replace sed and awk, modules from CPAN and where to learn more.
- PHP introductionAn introduction to PHP for beginners: what PHP is, installing it on Linux, variables, arrays, functions, forms, connecting safely to MariaDB with PDO, Composer, security basics and the current supported versions.
- HTML codes and basicsThe basics of HTML: a modern page template, the most-used tags, links, images, lists and tables, HTML character codes (entities) for symbols, and how to check and serve your pages.
- Introduction to JavaScriptA beginner's introduction to JavaScript: what it does in the browser and on the server with Node.js, variables, functions, arrays and objects, changing a page, fetching data, and where to learn more.
- Java tutorialsHow to install a Java JDK on Linux, write, compile and run a first program, run Java services under systemd, choose between Java versions, and the best free Java tutorials.
- SQL tutorialsLearn SQL on Unix: install SQLite, MariaDB or PostgreSQL, create tables, insert, select, join, group and update data, add indexes, back up databases, and the best free SQL tutorials.
- Web hosting and domainsHow to choose web hosting (shared, VPS, managed or static), Linux versus Windows hosting, buying and transferring a domain name, protecting it from hijacking, DNS basics, HTTPS, e-mail and backups.
Free tutorials elsewhere
Getting started
- Linux Journey: short lessons on the command line, text, users, processes and networking.
- LinuxCommand.org: William Shotts' tutorial and his complete book The Linux Command Line, free to read.
- The Linux command line for beginners: Canonical's hands-on introduction.
- The Missing Semester of Your CS Education (MIT): shell, editors, scripting, version control and debugging.
- OverTheWire Bandit: learn by solving puzzles on a real remote Unix machine over SSH.
Shell scripting
- GNU Bash Reference Manual: the official manual.
- Greg's Bash Guide and Bash Pitfalls: how to write scripts that do not break on spaces in file names.
- ShellCheck: paste a script and it points out bugs and risky constructs.
- POSIX shell language: the standard, for scripts that must run on every Unix.
System administration
- Linux Foundation free courses, including Introduction to Linux (LFS101).
- Red Hat Enterprise Linux Technical Overview (RH024), free on-demand course.
- Red Hat Enterprise Linux documentation, Debian Reference and the Ubuntu Server documentation.
- ArchWiki: detailed, current articles on almost every Linux subsystem, useful on any distribution.
- FreeBSD Handbook and the OpenBSD FAQ.
- IBM AIX documentation and Oracle Solaris documentation.
Reference
- Linux man pages (man7.org) and FreeBSD manual pages.
- explainshell.com: paste a command line and see what every part means.
- tldr pages: short, example-first help for common commands.
Looking for books instead? See the reading list. For certifications, see Linux training and certification.