Skip to content

Useful commands

Keep frequently used commands here for quick lookup.

Packages

apt search <term>              # Search available packages
apt show <package>             # Show package details
sudo apt install <package>     # Install a package
sudo apt remove <package>      # Remove a package

Services

systemctl status <service>
sudo systemctl enable --now <service>
journalctl -u <service> -e

System information

cat /etc/debian_version
uname -a
lsblk -f
ip address