A practical reference for developers working on Linux (Debian/Ubuntu-based).
Covers everyday commands, system internals, networking, package management, and more.
All examples are tested on Ubuntu/Debian. Most commands work on any Linux distro.
| Topic | Description |
|---|---|
| Kernel | Kernel version, loaded modules, kernel messages |
| Linux Directory Structure | What every directory in / is for |
| Filesystem & Partitions | fdisk, partition schemes, GRUB |
| Environment Variables | env, export, printenv, setting vars |
| Path | How $PATH works, adding custom paths |
| Memory | free, /proc/meminfo |
| Swap | mkswap, swapon, swapoff |
| Topic | Description |
|---|---|
| System Boot | initramfs, vmlinuz, init system |
| System Runlevels | Runlevel table (0–6) |
| Managing System Services | systemctl — start, stop, enable, disable |
| Process Monitoring | top, ps, uptime |
| Add New User | useradd, passwd, userdel |
| Upgrading & Patching | apt-get update, dist-upgrade, package ops |
| Using dpkg | List, inspect, and remove Debian packages |
| Topic | Description |
|---|---|
| Network & Interfaces | ip link, set IP, bring interface up/down, routing |
| Topic | Description |
|---|---|
| echo & cat | Create and write files from the command line |
| Aliases | Define and manage shell shortcuts |
| Topic | Description |
|---|---|
| Docker Internals | Image vs Container, OverlayFS, iptables, cgroups, namespaces |
| Kernel Deep Dive | Kernel vs OS, kernel space vs user space, syscalls |
| Topic | Description |
|---|---|
| Video Editing (FFmpeg) | Trim, merge, combine audio/video, speed up |
| Check GPU Usage | Intel (intel_gpu_top) and Nvidia (nvidia-smi) |
| Convert PPTX to PDF | Batch convert slides with soffice |
Estimate total video duration of all MP4s in a directory:
find . -iname '*.mp4' -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \; \
| paste -sd+ - | bc -l | awk '{printf "%.2f minutes\n", $1/60}'Find which process is using a port:
sudo ss -tulnp | grep :8080Watch real-time network traffic per interface:
watch -n 1 ip -s linkList all open files by a process:
lsof -p <PID>Check disk usage, sorted by size:
du -h --max-depth=1 | sort -hr# System info
uname -r # kernel version
uname -a # full system info
lsb_release -a # distro info
uptime # how long system has been running
# Disk
df -h # disk usage per filesystem
lsblk # block devices tree
sudo fdisk -l # partition details
# Memory
free -mt # RAM and swap summary
cat /proc/meminfo # detailed memory info
# Processes
ps aux # all running processes
top # live process monitor
kill -9 <PID> # force kill a process
# Network
ip link # all network interfaces
ip addr # IP addresses
ping -c 4 google.com # connectivity check
curl ifconfig.me # your public IP
# Services
systemctl status <service> # check service status
sudo systemctl restart nginx # restart a service
journalctl -u nginx -f # follow service logs