Pcornel
Linux

Linux Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=2649

Back to the Topic

Answer

Linux fundamentals are the layers every task touches: hardware, the kernel, user space (libraries, shells, services), the distribution that packages them, and the user session with its shell, environment and PATH.

Remember

Always record distribution, release, kernel and architecture first — package names, default paths and tools differ between Debian/Ubuntu and RHEL-family systems. Many "Linux" problems are really environment problems: a different user, shell or PATH than you think.

First checks

  • cat /etc/os-release — distribution and release
  • uname -r — running kernel
  • uname -m — CPU architecture
  • id — current user, groups
  • echo $SHELL; ps -p $$ — login shell and the shell actually running

Commands

lsblk -f
df -hT
ip -br addr
ip route
systemctl list-units --type=service --state=running
ss -tulnp

Verify in this order

distribution and release → running kernel → user and session → shell and environment → the program and its config → result

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2649

Confirmation

Confirm action

Continue?