Debian cheat sheet

Written on Tuesday, 10 September 2019 at 08:50. Last Modified on Tuesday, 15 November 2022 at 21:48.

Tags: Debian, Linux.

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

Site with 💕 made by Eliaslecomte.be