Keep the useful bits, human.
Beginner field notes
- A path describes where to find a file or folder. In notes/plan.txt, first enter notes, then look for plan.txt.
- A POSIX path beginning with / starts at the process’s filesystem root. A relative path needs a base location.
- From /home/learner/human-lab, notes/plan.txt means /home/learner/human-lab/notes/plan.txt in this simple example without symbolic links.
See a worked example
Resolve a relative path
One reviewed sample, shared across levels. Nothing here runs on your computer.
Example review recorded 2026-10-07 · version 1.
Base folder: /home/learner/human-lab
Relative path: notes/plan.txt/home/learner/human-lab/notes/plan.txtThis is a simple illustrative POSIX path with no symbolic links or special components. It is not a command to paste or a claim about your username or folders.
Sources for this sampleVisual
The reviewed description and complete diagram source are available here.
More of this diagram is available inside its frame. Focus the frame and use the arrow keys to pan.
Read the complete diagram source
This is the source for the reviewed diagram, not a command to run.
flowchart LR
B["Base: human-lab"] --> N["notes"]
N --> P["plan.txt"] Full explanation and primary sources
Reviewed explanation
A file path describes a route to a file or folder. An absolute path starts from a filesystem root; a relative path starts from a location supplied by the context. The example uses POSIX-style paths, as in many macOS and Linux shells. Windows paths may use a drive and different separators, so do not assume the exact spelling is portable.
In a terminal, a relative path commonly starts from the shell’s current working directory. In other contexts the base can be different: for example, a relative image path in a web page is interpreted relative to that page’s location. Ask “relative to what?” before treating two identical-looking paths as the same location.
If the base is /home/learner/human-lab, the path notes/plan.txt points into its notes folder. Moving to a different base changes what that relative path identifies. Keep spelling and capitalization consistent; some filesystems distinguish Plan.txt from plan.txt.
Source collection
- MDN: Dealing with files
Used in: Quick notes · Worked example · Lesson text
Project folders, nested files and folders, full filenames/extensions, capitalization, and relative references in HTML.
Relative file references depend on the invoking file’s location; subfolders, parent folders, and filename capitalization matter.
- POSIX.1-2024: General Concepts, file hierarchy and pathname resolution
Used in: Quick notes
Directory entries versus files, portable names, absolute/relative resolution, symbolic links, trailing slashes and leading double slash.
- MDN: Command line crash course
Used in: Worked example · Lesson text
The terminal examples distinguish absolute paths beginning with a root slash from paths relative to the present working directory.
Notes AI source review · 2026-10-17
AI source comparison recorded 2026-10-07. Human learner validation is pending.
Quick quiz · one question
Resolve the path from the given base
Sample scenario. Synthetic POSIX-style paths. There are no symbolic links, parent-directory components, expansion, or hidden base changes. This computes a path, not proof a file exists.
- Base folder
/home/learner/human-lab- Relative path
notes/plan.txt
The base folder is /home/learner/human-lab. Which absolute path does notes/plan.txt identify from that base?
Why this answer?
Answers stay on this device.
Sources and exercise scope
- MDN: Dealing with files
Nested project folders, file names and extensions, and relative file references.
- POSIX.1-2024: pwd
Plain pwd reports the current working directory as an absolute path, followed by a newline.
- MDN: Command line crash course
Terminal, shell, and command-line distinctions; an absolute path starts at a root while a relative path depends on the working directory.
Original synthetic exercise. AI comparison against primary documentation recorded on 2026-10-08; the references above state their scope. Human learner validation has not been run. A result here records this attempt; it does not establish mastery.
Follow this learning pathLesson 2 of 8
From project files to a small program
Save or adjust this lesson
Make this lesson yours
Save it for later, or tell your robot what would help.
This correction stays on this browser. Browse all concepts if the topic is missing.
Familiarity is your own assessment. To use it in your coding tool, download your updated learning profile.
Familiarity and lesson feedback are saved on this browser. They do not sync to your account or coding tool.