11 · The Command Line

File Path

A file's address

Where a file lives, written as folders separated by slashes. Absolute paths start from the root; relative paths start from where you currently are.

Concrete example

“src/app.js” (relative) versus “/Users/you/src/app.js” (absolute).

Why it matters

Half of all command-line confusion is simply not knowing where you are.