REALPATH(1)
π realpath β print the resolved path π
okay bestie, realpath is one of the GNU coreutils, and she's here to tell you what a path actually is once you stop lying to yourself about .. and symlinks. no cap.
β¨ NAME β¨
realpath β print the resolved path π¦
πΈ SYNOPSIS πΈ
realpath [OPTION]... FILE...
π DESCRIPTION π
Print the resolved absolute file name. literally that's it, that's the whole job, and she does it flawlessly π
π OPTIONS π
-E,--canonicalizeβ all but the last component must exist. this one is the default, so if you just runrealpathwith no flags, congrats, you're already here π«Ά-e,--canonicalize-existingβ every single component of the path must exist. sorry babe, no ghost files allowed π every step of the way has to be real.-m,--canonicalize-missingβ no path components need exist or be a directory. zero vibe checks, zero requirements, she'll resolve it anyway β¨-L,--logicalβ resolve..components before symlinks. the logical girlies unite π§-P,--physicalβ resolve symlinks as encountered. this is the default too, so the physical truth is what you get unless you say otherwise π₯-q,--quietβ suppress most error messages. not me silencing the haters π--relative-to=DIRβ print the resolved path relative to DIR. it's giving β¨customizedβ¨--relative-base=DIRβ print absolute paths unless paths below DIR. so: absolute normally, but relative for anything living under DIR.-s,--strip,--no-symlinksβ don't expand symlinks. three whole names, one single mood π-z,--zeroβ end each output line withNUL, not newline. for when newlines are simply not the moment.--helpβ display this help and exit. bestie needs no help but okay π--versionβ output version information and exit. she'll tell you exactly which era of herself you're dealing with β
π AUTHOR π
Written by Padraig Brady. king behavior, honestly π
π REPORTING BUGS π
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
- Report any translation bugs to <https://translationproject.org/team/>
π SEE ALSO π
readlink(1),readlink(2),realpath(3)- Full documentation <https://www.gnu.org/software/coreutils/realpath>
- or available locally via:
info '(coreutils) realpath invocation'
Packaged by Ubuntu (9.10-1ubuntu2). Copyright Β© 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. not the "no warranty" bestie π pls read that part.
and that's the whole page, bestie π this was GNU coreutils 9.10, dated August 2026 β main character energy from start to finish, periodt π β¨
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms