realpath [options] path...Arguments explained
- path is the file or directory to resolve.
- -m canonicalizes even if some components do not exist.
Common examples
realpath ../projectPrints the absolute path for ../project.
realpath /bin/shShows the final target behind the /bin/sh path.
| Field | Details |
|---|---|
| Command | realpath |
| Category | Navigation |
| Primary use | Resolves a path to an absolute canonical path. |
| Syntax | realpath [options] path... |