Ubuntu is a Debian-based Linux distribution that emphasizes ease of use, regular release cycles, and community-driven development. It serves as the foundation for countless servers, desktops, and cloud deployments worldwide, offering robust package management, systemd service orchestration, and comprehensive security features. Understanding Ubuntu's command-line tools and configuration patterns is essential for system administration, automation, and troubleshootingβwhile most commands apply across Linux distributions, Ubuntu's specific defaults (like APT, Netplan, AppArmor, and Ubuntu Pro) shape the practical workflows covered here. As of Ubuntu 26.04 LTS (Resolute Raccoon, released April 2026), cgroup v1 has been removed and sudo-rs (Rust-based) replaces the classic C sudo by default.
What This Cheat Sheet Covers
This topic spans 32 focused tables and 370 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Package Management
| Command | Example | Description |
|---|---|---|
sudo apt update | Refreshes package index from repositories β always run before installing or upgrading packages. | |
sudo apt upgrade | Installs newer versions of all installed packages without removing any. | |
sudo apt full-upgrade | β’ Upgrades packages and removes obsolete dependencies if needed β’ used for major version transitions. | |
sudo apt install nginx | Installs a package along with its dependencies. | |
sudo apt remove nginx | Removes a package but keeps configuration files. | |
sudo apt purge nginx | Removes package and deletes configuration files. | |
sudo apt autoremove | Removes unused dependencies automatically installed with other packages. | |
apt search docker | Searches package repositories for a keyword. | |
apt show nginx | Displays detailed information about a package including version, dependencies, and description. |