Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Linux Fundamentals

Direct 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.

When to use this

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.

First 30 seconds

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).

Operational verification

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

Evidence · next step

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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it as the entry point when you need to know which layer a Linux problem lives in, or what a distribution and releas…
What next?3 suggested next steps
Child topics (this level)8
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Linux Architecture

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 Kernel

Kernel 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 Space

User 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 Distributions

Distributions 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 Shell

Shell 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 / TTY

Terminal / 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 Variables

Environment 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 PATH

PATH 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.

Key points

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.

Key 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
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-release as the fallback, holds newline-separated KEY=value assignments.
  • The format is compatible with shell syntax, so scripts can source it.
  • Important fields are ID, ID_LIKE, VERSION_ID, PRETTY_NAME and VERSION_CODENAME.

A first orientation

QuestionCommand
Distribution and versioncat /etc/os-release, hostnamectl
Kernel and architectureuname -srm
Init systemps -p 1 -o comm= (usually systemd)
Package managercommand -v apt dnf zypper pacman apk
Uptime and loaduptime
CPU and memorynproc, free -h, lscpu | head
Disks and file systemslsblk -f, df -hT
Networkip -br addr, ip route
Running servicessystemctl list-units --type=service --state=running
Listening portsss -tulnp
Who else is herewho, last -n 5
Virtual machine or containersystemd-detect-virt

Fundamentals worth knowing

ConceptShort form
Everything is a fileDevices, processes and kernel settings appear in the file tree (/dev, /proc, /sys)
Kernel and user spaceThe kernel manages hardware and resources; programs run in user space and ask it through system calls
Users and permissionsEvery process runs as a user; permissions decide what it can touch
Small tools combinedPipes join programs that each do one thing
Text configurationMostly 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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:

IdeaConsequence
Everything is a fileDevices (/dev), kernel state (/proc, /sys), sockets and pipes use file APIs
Small tools, combinedPipes and text streams; scripts glue tools together
Multi-user by designUIDs, permissions, root separation
Configuration in text/etc files, versionable and diffable
Process treeEvery process has a parent; PID 1 (systemd) is the root
uname -a; cat /etc/os-release
hostnamectl
systemctl status
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
linux basicslinux operating system fundamentalslinux architecture basicslinux core concepts
Embedded reference data

Quick lookup tables

Linux Fundamentals operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Linux Fundamentals.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux 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 verificationPin 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 chainhardware/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 resultTrace requested/configured state through effective state to the observed workload result.
Failure boundaryLinux 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 evidenceCorrelated 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 resultUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryLinux Fundamentals
Topic pathLinux Fundamentals
Runtime stateLinux 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 chainhardware/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 boundaryLinux 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?