Debian Commands Cheat Sheet

sudo apt update

Updates the package list from repositories.

sudo apt upgrade

Upgrades all installed packages to the latest versions.

sudo apt install <package>

Installs a specific package.

sudo apt remove <package>

Removes an installed package.

ls -la

Lists all files and directories with detailed information.

cd <directory>

Changes the current directory.

pwd

Shows the current working directory.

cp source destination

Copies files or directories.

mv source destination

Moves or renames files or directories.

rm -r <directory>

Deletes a directory and its contents.

top

Displays real-time system processes and resource usage.

df -h

Shows disk space usage in a human-readable format.