Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Ubuntu Cheat Sheet

Ubuntu Cheat Sheet

Back to Operating Systems and CLI
Updated 2026-04-28
Next Topic: Windows 11 Troubleshooting Cheat Sheet

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 ManagementTable 2: Snap and Universal PackagingTable 3: Ubuntu ProTable 4: File System HierarchyTable 5: File OperationsTable 6: File Permissions and OwnershipTable 7: LinksTable 8: Text ProcessingTable 9: Archiving and CompressionTable 10: User and Group ManagementTable 11: Process ManagementTable 12: System MonitoringTable 13: Systemd Service ManagementTable 14: Systemd TimersTable 15: Logs and JournalingTable 16: Networking ConfigurationTable 17: Firewall (UFW)Table 18: SSH ConfigurationTable 19: Disk ManagementTable 20: Swap ManagementTable 21: Kernel ModulesTable 22: Kernel Parameter Tuning (sysctl)Table 23: GRUB BootloaderTable 24: Time and DateTable 25: Cron Job SchedulingTable 26: System UpgradesTable 27: Environment Variables and ShellTable 28: Input/Output Redirection and PipesTable 29: File EditorsTable 30: AppArmor SecurityTable 31: Terminal MultiplexersTable 32: Advanced Synchronization

Table 1: Package Management

CommandExampleDescription
apt update
sudo apt update
Refreshes package index from repositories β€” always run before installing or upgrading packages.
apt upgrade
sudo apt upgrade
Installs newer versions of all installed packages without removing any.
apt full-upgrade
sudo apt full-upgrade
β€’ Upgrades packages and removes obsolete dependencies if needed
β€’ used for major version transitions.
apt install
sudo apt install nginx
Installs a package along with its dependencies.
apt remove
sudo apt remove nginx
Removes a package but keeps configuration files.
apt purge
sudo apt purge nginx
Removes package and deletes configuration files.
apt autoremove
sudo apt autoremove
Removes unused dependencies automatically installed with other packages.
apt search
apt search docker
Searches package repositories for a keyword.
apt show
apt show nginx
Displays detailed information about a package including version, dependencies, and description.

More in Operating Systems and CLI

  • tcpdump and Wireshark CLI Packet Analysis Cheat Sheet
  • Windows 11 Troubleshooting Cheat Sheet
  • AWS CLI Cheat Sheet
  • iptables Legacy Linux Firewall Reference Cheat Sheet
  • macOS Usage Cheat Sheet
  • System Administration Cheat Sheet
View all 51 topics in Operating Systems and CLI