REALPATH(1)
π REALPATH(1) β like, the manual page, but make it make sense π
okay so bestie, welcome to realpath, a General Commands Manual entry from the uutils coreutils girlies. She prints the resolved path. That's her whole thing. She's an icon, she's a legend, and honestly she eats every single time. π«Ά
β¨ NAME β¨
realpath β Print the resolved path πΈ
π¦ SYNOPSIS π¦
realpath [OPTION]... FILE...
π DESCRIPTION π
Print the resolved path. That's it, that's the tweet. Give her some files, she gives you back the real, canonical, no-more-games path. π
π OPTIONS π
-q,--quietβ shhh bestie π€« no warnings for invalid paths. Do not print them. None. Zero. Silence, gorgeous.-s,--stripβ only strip the'.'and'..'components, but do NOT resolve symbolic links. She's just tidying, not snooping. π§Ή-z,--zeroβ separate output filenames with\0instead of newline. Null-terminated realness fr fr. π-L,--logicalβ resolve'..'components before symlinks. Order matters, it's giving precedence. β¨-P,--physicalβ resolve symlinks as encountered. This is the default, periodt. π-E,--canonicalizeβ all but the last component must exist. Also the default. She keeps it strict, but only mostly. π-e,--canonicalize-existingβ canonicalize by following every symlink in every component of the given name recursively, and all components must exist. Every. Single. One. No pretending. π-m,--canonicalize-missingβ canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence. Manifest it, whether it's there or not. π¦--relative-to <DIR>β print the resolved path relative to DIR. Relativity, but make it paths. π--relative-base <DIR>β print absolute paths unless paths below DIR. Absolute by default, chill below the base. π-h,--helpβ Print help. Your girl comes with a manual, obviously. π-V,--versionβ Print version. She'll tell you exactly who she is. β<files>β the files. The actual files. The whole point. π
π VERSION π
v(uutils coreutils) 0.12.0
π₯ EXAMPLES π₯
Display the absolute path for a file or directory:
realpath path/to/file_or_directory
Require all path components to exist:
realpath [-e|--canonicalize-existing] path/to/file_or_directory
Resolve .. components before symlinks:
realpath [-L|--logical] path/to/file_or_directory
Disable symlink expansion:
realpath [-s|--no-symlinks] path/to/file_or_directory
Suppress error messages:
realpath [-q|--quiet] path/to/file_or_directory
π ngl, the examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. And please note that, as uutils is a work in progress, some examples might fail. It's a growing girl, okay?? π
okay that's the whole page bestie, mwah π β¨
this has been the REALPATH(1) page from the uutils coreutils, dated 2026-09-25 β yeah she's got a timestamp and she's proud of it. now go resolve some paths, main character. ππ¦πΈ
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms