Linux Architecture
Cheat sheet · https://pcornel.dk/topic.php?topic=2650
Answer
Linux architecture has three layers: hardware; the kernel, which schedules processes and manages memory, devices, filesystems and networking; and user space, where libraries, shells, services and applications run. Programs ask the kernel for anything privileged through system calls.
Remember
User-space programs cannot touch hardware directly; errors such as "Permission denied" or "No such device" are the kernel's answer to a system call. strace shows those calls and their errors, which often explains a vague application message.
First checks
uname -a— kernel version and architecturestrace -f -e trace=file <cmd>— system calls the program makes and their errorsldd <binary>— shared libraries a program usesdmesg -T | tail— recent kernel messages
Commands
mountfindmntnft
Verify in this order
application → library → system call → kernel subsystem → driver → hardware
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=2650