The world’s most popular desktop & server Linux Uses apt (Debian-based). All privileged commands require sudo. Covers Ubuntu Desktop, Server, LTS, and Snaps.
1. Installation (Live USB / Server ISO)
Task
Command / Action
Boot Live USB
Try Ubuntu → Install Ubuntu
Disk setup
Use Eraser or Something Else (manual: /, /boot, swap)
Server install
Boot ISO → Language → Minimal or Standard
Enable SSH (server)
sudo apt install openssh-server
Update on first boot
sudo apt update && sudo apt upgrade -y
2. APT (Package Management)
Action
Command
Update package lists
sudo apt update
Upgrade all packages
sudo apt upgrade -y
Full upgrade (new deps)
sudo apt full-upgrade -y
Install package
sudo apt install package
Remove package
sudo apt remove package
Purge (with config)
sudo apt purge package
Autoremove unused
sudo apt autoremove
Clean cache
sudo apt clean
Search package
apt search keyword
List installed
dpkg -l | grep ^ii
Show info
apt show package
Fix broken installs
sudo apt install -f
Which package owns file
dpkg -S /path/to/file
3. Snaps (Universal Packages)
Action
Command
Install snap
sudo snap install package
Update all snaps
sudo snap refresh
List installed
snap list
Remove snap
sudo snap remove package
Classic confinement
sudo snap install --classic code
Find in store
snap find keyword
Common Snaps: code, discord, spotify, slack, postman, chromium
4. System Administration
Task
Command
List services
systemctl list-unit-files --type=service
Enable service
sudo systemctl enable service
Start service
sudo systemctl start service
Status
systemctl status service
View logs
journalctl -u service
Reboot
sudo reboot
Shutdown
sudo poweroff
Disk usage
df -h
Memory
free -h
Processes
htop or top
Kill process
kill PID or pkill name
Check Ubuntu version
lsb_release -a or cat /etc/os-release
5. Users & Permissions
Action
Command
Add user
sudo adduser username
Add to sudo group
sudo usermod -aG sudo username
Change password
sudo passwd username
Change owner
sudo chown user:group file
Change permissions
chmod 755 file
Switch user
su - username
6. Networking
Task
Command
Check IP
ip a or nmcli device show
List Wi-Fi
nmcli device wifi list
Connect Wi-Fi
nmcli device wifi connect SSID password "pass"
Restart NetworkManager
sudo systemctl restart NetworkManager
Check DNS
cat /etc/resolv.conf
Test connection
ping -c 4 google.com
Firewall (UFW)
sudo ufw status sudo ufw allow 22/tcp sudo ufw enable
Essential commands for installation, package management, system administration, and troubleshooting Uses dnf (primary) and flatpak/rpm-ostree (for Silverblue/Atomic). All privileged commands require sudo.
1. Installation (Live USB / Anaconda)
Task
Command / Action
Boot live ISO
Select “Start Fedora-Workstation”
Launch installer
Click “Install to Hard Drive”
Disk partitioning
Use Blivet-GUI or manual (/boot/efi, /, swap)
Post-install (first boot)
Complete user setup via GNOME Initial Setup
Manual install (netinstall)
Boot netinstall ISO → dnf install @base-x (or minimal)
Essential commands for installation, package management, system administration, and troubleshooting Assumes pacman as primary package manager. All commands require sudo unless run as root.