1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:22:08 +02:00
tldr/pages/common/realpath.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

24 lines
641 B
Markdown

# realpath
> Display the resolved absolute path for a file or directory.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/realpath-invocation.html>.
- Display the absolute path for a file or directory:
`realpath {{path/to/file_or_directory}}`
- Require all path components to exist:
`realpath --canonicalize-existing {{path/to/file_or_directory}}`
- Resolve ".." components before symlinks:
`realpath --logical {{path/to/file_or_directory}}`
- Disable symlink expansion:
`realpath --no-symlinks {{path/to/file_or_directory}}`
- Suppress error messages:
`realpath --quiet {{path/to/file_or_directory}}`