Use it as the entry point when you need to know which layer a Linux problem lives in, or what a distribution and release changes.
Linux Fundamentals
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.
1. cat /etc/os-release and uname -rm — which system is this?
2. id — which user and groups are you running as?
3. ps -p $$ -o comm= — which shell?
4. echo $PATH / type <cmd> — which binary actually runs?
5. Then go to the layer the symptom points to (kernel, service, file, network).
distribution and release → running kernel → user and session → shell and environment → the program and its config → result
For Linux Fundamentals, continue with the first unproven Topic check: Record distribution/release, CPU architecture and the running kernel before assuming platform behavior. If that boundary is healthy, advance to the adjacent check: Identify the owning process and whether the observation belongs to kernel space, user space, shell parsing, terminal I/O, environment inheritance or PATH lookup. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
hardware/firmware + distribution identity → booted kernel → user-space/PID 1/runtime → login/session → shell + terminal/TTY → inherited environment → PATH/executable resolution → process/syscall interaction → observed workload result
Healthy evidence: host identity, running-kernel identity, user-space/session ownership, shell/TTY context, environment and executable resolution are all attributable to the same observation.
Step 2 Verification and output interpretation Verify boundary
Verification path. Begin with host identity, architecture and running-kernel identity, then narrow to the exact user/session/process that demonstrates the behavior. Use process metadata, environment inspection, executable resolution and the relevant virtual filesystem or system call surface. Compare persistent intent with the actual running context. When reproducing, use the same login/non-login, interactive/non-interactive and privilege context as the original consumer because those boundaries can legitimately produce different results.
Existing fast checks for this Topic. - Record distribution/release, CPU architecture and the running kernel before assuming platform behavior.
- Identify the responsible process and whether the observation belongs to kernel space, user space, shell parsing, terminal I/O, environment inheritance or PATH lookup.
- Capture the current user/session, shell mode and effective environment from the same context that exhibits the behavior.
- Resolve the actual executable or consumer and verify its observed behavior before changing persistent configuration.
Verification chain. hardware/firmware + distribution identity → booted kernel → user-space/PID 1/runtime → login/session → shell + terminal/TTY → inherited environment → PATH/executable resolution → process/syscall interaction → observed workload result
Step 3 Commands Verify boundary
uname -a
cat /etc/os-release
hostnamectl
lsb_release -a
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: distribution name is used as a proxy for kernel/runtime facts, root is described as kernel mode, shell and terminal are treated as synonyms, or persistent configuration is assumed effective without checking the running process.
It does not show behavior outside the captured host, kernel, process/session, environment or workload scope. Linux Fundamentals evidence establishes the host and execution context, but it does not show that a later subsystem such as networking, storage, systemd, security or an application is healthy.
Next check: Continue from the first unproven Linux layer: preserve platform identity and the running kernel, inspect the exact process/session and effective configuration/environment, resolve the actual consumer/executable, then verify the original workload before moving into the responsible Linux subsystem branch.
Step 5 Common mistakes Narrow the fault
- Assuming all distributions use the same paths and tools.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Linux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer.
Subtopic KernelKernel is the running Linux core that schedules tasks, manages memory, exposes system calls, implements networking/filesystem primitives and coordinates drivers; troubleshooting must distinguish the booted kernel from installed kernel files and from distribution release identity.
Subtopic User SpaceUser Space is where normal processes, libraries, shells, daemons and most administrative tools execute above the kernel protection boundary; even privileged processes remain user-space consumers of kernel interfaces.
Subtopic DistributionsDistributions package the Linux kernel with user-space tools, libraries, init/service defaults, repositories, policies and release lifecycles; the distribution defines integration choices but is not itself the kernel.
Subtopic ShellShell is a command-language interpreter and process launcher, not the terminal itself. Shell behavior depends on implementation plus login/interactive/non-interactive mode, parsing, expansions, builtins, environment inheritance and exit-status handling.
Subtopic Terminal / TTYTerminal / TTY describes the character-oriented session endpoint used by interactive programs: physical/virtual consoles, terminal emulators and pseudo-terminals provide I/O and terminal semantics, while a shell is merely one process that may attach to a controlling terminal.
Subtopic Environment VariablesEnvironment Variables are per-process key/value strings inherited at process creation and optionally modified by the process or its launcher; persistent shell, user, service or system configuration only matters when it actually feeds the target process environment.
Subtopic PATHPATH is an ordered colon-separated list of directories consulted by shells and process-launch mechanisms for unqualified executable names; the effective result depends on the caller's environment, shell/runtime lookup rules, executable permissions and possible command caches.
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.
cat /etc/os-release— distribution and releaseuname -r— running kerneluname -m— CPU architectureid— current user, groupsecho $SHELL; ps -p $$— login shell and the shell actually running
ReferenceWhat it is1 section · depth on demand
Core model
Identify the exact distribution/release and CPU architecture, then distinguish the booted kernel from installed packages, the current user-space/init stack from kernel behavior, the shell from the terminal that hosts it, and process-local environment/PATH from persistent configuration. Trace an observed command or application from session context through environment and executable resolution to the actual process and kernel interface it uses.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Linux Fundamentals evidence establishes the host and execution context, but it does not show that a later subsystem such as networking, storage, systemd, security or an application is healthy.
In depth
Getting your bearings on an unfamiliar Linux system
The first minutes on an unknown host are about answering basic questions: which distribution and version, which kernel, which init system, which package manager, and what the machine is for. The os-release(5) manual page describes the standard file for the first question:
/etc/os-release, with/usr/lib/os-releaseas the fallback, holds newline-separatedKEY=valueassignments.- The format is compatible with shell syntax, so scripts can source it.
- Important fields are
ID,ID_LIKE,VERSION_ID,PRETTY_NAMEandVERSION_CODENAME.
A first orientation
| Question | Command |
|---|---|
| Distribution and version | cat /etc/os-release, hostnamectl |
| Kernel and architecture | uname -srm |
| Init system | ps -p 1 -o comm= (usually systemd) |
| Package manager | command -v apt dnf zypper pacman apk |
| Uptime and load | uptime |
| CPU and memory | nproc, free -h, lscpu | head |
| Disks and file systems | lsblk -f, df -hT |
| Network | ip -br addr, ip route |
| Running services | systemctl list-units --type=service --state=running |
| Listening ports | ss -tulnp |
| Who else is here | who, last -n 5 |
| Virtual machine or container | systemd-detect-virt |
Fundamentals worth knowing
| Concept | Short form |
|---|---|
| Everything is a file | Devices, processes and kernel settings appear in the file tree (/dev, /proc, /sys) |
| Kernel and user space | The kernel manages hardware and resources; programs run in user space and ask it through system calls |
| Users and permissions | Every process runs as a user; permissions decide what it can touch |
| Small tools combined | Pipes join programs that each do one thing |
| Text configuration | Mostly plain files under /etc |
host$ . /etc/os-release && echo "$PRETTY_NAME ($ID, like: ${ID_LIKE:-none})"
Ubuntu 24.04.1 LTS (ubuntu, like: debian)
host$ uname -srm
Linux 6.8.0-49-generic x86_64
host$ ps -p 1 -o comm=
systemd
host$ systemd-detect-virt
kvm
host$ lsblk -f | head -5
host$ systemctl list-units --type=service --state=running --no-legend | wc -l
37
Source the file in a subshell
Sourcing /etc/os-release sets shell variables such as ID and NAME. In a larger script, read it in a subshell, ( . /etc/os-release; echo "$ID" ), so these names don't overwrite variables the script already uses.
Documented example, not captured output.
How it works at runtime
Linux Fundamentals is part of Linux Fundamentals. Linux Fundamentals is the operating-system foundation for the Linux Domain: it separates hardware architecture, the running kernel, user space, distribution packaging/defaults, session/shell/terminal context, inherited environment and executable lookup so later troubleshooting starts from the correct layer.
Runtime state ownership and mechanics. Linux behavior is the composition of hardware, the booted kernel, user-space processes and per-process context. System calls and virtual filesystems expose kernel-owned state; libraries, shells and daemons translate that state into user-facing behavior. Privilege identity, CPU execution mode, shell parsing, terminal I/O, environment inheritance and executable lookup are separate mechanisms. Always attach the observation to the running kernel, distribution/user-space generation, architecture and exact process/session rather than treating “Linux” as one undifferentiated layer.
Topic-specific state model. Linux Fundamentals is the operating-system foundation for the Linux Domain: it separates hardware architecture, the running kernel, user space, distribution packaging/defaults, session/shell/terminal context, inherited environment and executable lookup so later troubleshooting starts from the correct layer.
Technical metadata. Distribution ID/release/family, CPU architecture, running kernel release, process/PID/UID/GID/session/namespace, parent/launcher/PID 1, shell implementation and invocation mode, terminal/TTY/PTY state, effective environment and variable provenance, PATH order, command type/resolved executable, package/artifact version, loaded configuration/runtime state, syscall/IPC/dependency boundary, exit/error evidence and workload-visible result.
Interpretation rule. - Distribution release ≠ running kernel version or kernel capability.
- Root user ≠ kernel mode; root remains a user-space process identity with elevated authorization.
- Shell ≠ terminal/TTY; a shell is a command interpreter while a terminal is an I/O/session endpoint.
- Configuration present on disk ≠ current process environment or executable resolution already reflects it.
Quick reference
A Linux system is the kernel plus user-space software assembled by a distribution. Core ideas that run through everything:
| Idea | Consequence |
|---|---|
| Everything is a file | Devices (/dev), kernel state (/proc, /sys), sockets and pipes use file APIs |
| Small tools, combined | Pipes and text streams; scripts glue tools together |
| Multi-user by design | UIDs, permissions, root separation |
| Configuration in text | /etc files, versionable and diffable |
| Process tree | Every process has a parent; PID 1 (systemd) is the root |
uname -a; cat /etc/os-release
hostnamectl
systemctl status
Limits and how it fails
Primary failure point. Linux Fundamentals evidence establishes the host and execution context, but it does not show that a later subsystem such as networking, storage, systemd, security or an application is healthy.
Model. Distribution release, installed kernel packages, the booted kernel and application runtime are different facts. UID 0 is privileged user space, not “kernel mode.” A shell is not a TTY, a terminal is not a shell, and environment variables are per-process state inherited across exec. Feature presence in documentation or on disk is not evidence that the running kernel or process supports or uses it. Keep these distinctions intact before escalating into subsystem-specific diagnosis.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Configuration intent and lifecycle. Foundational behavior is often influenced by several sources at once: kernel command line and sysctls, distribution defaults, PAM/login policy, shell startup files, environment generators and process inheritance. Determine which layer owns the setting before changing it. Changes to a login profile do not retroactively alter existing processes; a PATH edit does not change already-resolved executable paths; a package update does not imply the running kernel changed until a reboot selects it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Fundamentals. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Linux Fundamentals operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Linux Fundamentals.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux Fundamentals is the operating-system foundation for the Linux Domain: it separates hardware architecture, the running kernel, user space, distribution packaging/defaults, session/shell/terminal context, inherited environment and executable lookup so later troubleshooting starts from the correct layer. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin distribution/release + CPU architecture + running kernel → identify the exact process/session and kernel-versus-user-space boundary → capture shell/TTY mode and effective environment where relevant → resolve the real executable/consumer → correlate requested action with observed runtime state → verify the original workload result before changing persistent configuration. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | hardware/firmware + distribution identity → booted kernel → user-space/PID 1/runtime → login/session → shell + terminal/TTY → inherited environment → PATH/executable resolution → process/syscall interaction → observed workload result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Linux Fundamentals evidence establishes the host and execution context, but it does not prove that a later subsystem such as networking, storage, systemd, security or an application is healthy. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated host, process/session and runtime evidence can establish this Linux Fundamentals proof path: hardware/firmware + distribution identity → booted kernel → user-space/PID 1/runtime → login/session → shell + terminal/TTY → inherited environment → PATH/executable resolution → process/syscall interaction → observed workload result | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host, kernel, process/session, environment or workload scope. Linux Fundamentals evidence establishes the host and execution context, but it does not prove that a later subsystem such as networking, storage, systemd, security or an application is healthy. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven Linux layer: preserve platform identity and the running kernel, inspect the exact process/session and effective configuration/environment, resolve the actual consumer/executable, then verify the original workload before moving into the owning Linux subsystem branch. | Continue to the next unresolved boundary while preserving the original test condition. |
Linux Fundamentals · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Linux Fundamentals |
|---|---|
| Topic path | Linux Fundamentals |
| Runtime state | Linux Fundamentals is the operating-system foundation for the Linux Domain: it separates hardware architecture, the running kernel, user space, distribution packaging/defaults, session/shell/terminal context, inherited environment and executable lookup so later troubleshooting starts from the correct layer. |
| Fast checks | - Record distribution/release, CPU architecture and the running kernel before assuming platform behavior. - Identify the owning process and whether the observation belongs to kernel space, user space, shell parsing, terminal I/O, environment inheritance or PATH lookup. - Capture the current user/session, shell mode and effective environment from the same context that exhibits the behavior. - Resolve the actual executable or consumer and verify its observed behavior before changing persistent configuration. |
| Verification chain | hardware/firmware + distribution identity → booted kernel → user-space/PID 1/runtime → login/session → shell + terminal/TTY → inherited environment → PATH/executable resolution → process/syscall interaction → observed workload result Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Linux Fundamentals evidence establishes the host and execution context, but it does not prove that a later subsystem such as networking, storage, systemd, security or an application is healthy. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |