file path
A path is the exact address of a file or folder on a computer: it shows which folders must be traversed to reach it.
In plain terms
A path is like a postal address. A letter shows country, city, street, and house number; a computer shows drive, folder, subfolder, and filename. For example, C:\Users\Kata\Documents\szamla.pdf means the file named szamla.pdf is on the C drive, in Kata's Documents folder. Hungarian Windows displays this folder as "Dokumentumok," but its real name is Documents.
It is necessary because a machine cannot make sense of 'that spreadsheet from yesterday'. For a program, command, or AI agent, you must specify exactly which file you mean, letter by letter. Two files with identical names can coexist peacefully on a computer if they are in different folders, as their file paths differ.
Two types exist. An absolute path is the full address starting from the drive or root folder. A relative path is only guidance from where you currently stand, as when you tell someone: "the second door on the left."
How it works
- The machine stores files in a tree-like system: there is a starting point (root), from which folders open, and from those folders, further folders and files.
- The path lists the folders to traverse in order, and the names are separated by a delimiter. On Windows, this is traditionally the backslash (\), although most programs also accept the forward slash. On macOS and Linux, the forward slash (/) is the delimiter.
- An absolute path starts from the root (for example, C:\ on Windows, and / on Linux and macOS), so it points to the same file from anywhere.
- A relative path is understood in relation to the current folder, the so-called working directory. A single dot (.) represents the folder you are currently in, while two dots (..) represent the one above it.
- When you open a file, the operating system traverses the path step by step. If any name is incorrect or missing, you receive an error message, such as that the file or path cannot be found.
An everyday example
You ask a coding agent to fix a bug, and it replies: "I modified the src/oldalak/kapcsolat.html file." This is a relative path: within your project folder, you find the file in the src folder, inside the oldalak folder. You encounter the same when a program asks during installation where to save, or when you see where you are in the title bar of File Explorer.
Who is affected
A common misconception
Limits and risks
- A path is just an address, not the file itself: if you move or rename the file, the old path points to nothing.
- Systems differ from each other. Windows uses a backslash, and case usually does not matter. Linux uses a forward slash, and 'Jelentes.pdf' and 'jelentes.pdf' are two separate files. macOS, by default, does not distinguish between uppercase and lowercase letters.
- Spaces, accents, and overly long paths can cause problems; on Windows, for example, many programs traditionally handle paths of up to 260 characters.
- The file path can be revealing: it often contains your username or your client's name, so review it before sharing a screenshot or copying it into an AI tool.
Similar, but not the same
- filename – The filename only names the file itself, while the path also specifies where it is located.
- URL (web address) – A URL identifies a page or file on the internet, while a path is within your own machine or a server's file system. In a URL, the part after the machine name (domain) is itself a path.
- parancsikon – A shortcut is a small file that stores a path and takes you there when clicked; the path itself is the address.
Related concepts
file system, operating system
absolute path, relative path, working directory
A brief history
The system of nested folders and the concept of the file path emerged in the mid-1960s during the design of the Multics operating system, and Unix made the slash notation standard. The backslash used on Windows today appeared with MS-DOS 2.0 in 1983.
Where things stand
Every computer, phone, and server works with file paths, even if mobile apps hide them from you. With the spread of coding agents, more non-developers encounter them, as agents use file paths to indicate which files they have read or modified.
In the news
- 39% of advertisers in IAB study report losing search query dataDec 3, 2026 · Marketing
- Claude Code 2.1.335 adds clickable file pathsDec 3, 2026 · Code
- Mediwhale gains FDA clearance for cardiovascular risk assessment toolNov 30, 2026 · Health
- Recruitment's new rulebook for 2026: skills-based hiring and AI candidate screeningNov 24, 2026 · Work & HR
- Shirudo can protect Linux systems without a restart until patches are installedNov 23, 2026 · Code
- Viz.ai to integrate UpToDate Expert AI into its care pathway platformNov 23, 2026 · Health
- Analysis: AI assistants already analyse spending in the US; the path is slower in EuropeNov 19, 2026 · Money
- TSMC halts advanced orders from Chinese chip designers due to new US regulationsNov 19, 2026 · Industry
Also known as
file path · path · file path · file path · file path · path · pathname · filepath
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.