Debian cheat sheet

My most used terminal commands 🤪.

File

// see file ownership
stat py

// see ownership of files in current folder
ls -l

Machine

// reboot
sudo reboot

Storage

See how much disk space you have left

// how much storage you have left
df -h

// remove folders and everything inside of it
rm -rfv folder

Dependencies

Aptitude

// update
sudo apt update

// upgrade dependencies
sudo apt upgrade

User

// see userid (uid), group id (gid) and groups
id username
id root
id elias