REALPATH(1)
๐ธ REALPATH ๐
okay bestie, welcome to realpath โ the manual page for the realpath(1) command, living under User Commands. it's the glow-up machine for your file paths. let's go โจ
๐ NAME ๐
realpath โ print the resolved path. that's it. that's the whole job. she resolves, she prints, she slays ๐
๐ฆ SYNOPSIS ๐ฆ
realpath [OPTION]... FILE...
โจ DESCRIPTION โจ
Print the resolved absolute file name. absolute. no more ../.. nonsense. no more vibes-based paths. she takes what you give her and hands back the truth ๐
now, the flags. there are a bunch and they all matter, so pay attention bestie ๐ซถ
-E,--canonicalizeโ all but the last component must exist. this is the default btw, so if you don't pick anything, this is what you're getting ๐-e,--canonicalize-existingโ every single component of the path must exist. all of them. no stragglers, no missing pieces. strict queen energy ๐-m,--canonicalize-missingโ no path components need exist, and they don't need to be a directory either. she'll resolve it anyway, zero questions asked ๐-L,--logicalโ resolve the..components before symlinks. logical girly brain ๐ง โจ-P,--physicalโ resolve symlinks as they're encountered. this is also the default, so yeah, physical stays winning ๐-q,--quietโ suppress most error messages. she's not gonna yell at you, she's just gonna sit there quietly and judge silently ๐คซ--relative-to=DIRโ print the resolved path relative to DIR. so she's not absolute about it, she's relative. it's giving "it's complicated" ๐--relative-base=DIRโ print absolute paths unless the paths are below DIR. conditional queen ๐-s,--strip,--no-symlinksโ don't expand symlinks. leave them exactly where they are, untouched, unbothered, main character energy ๐-z,--zeroโ end each output line with aNUL, not a newline. for when you need your paths NUL-terminated, iykyk ๐--helpโ display this help and exit. always read the help bestie, it's free therapy ๐ซถ--versionโ output version information and exit. flex the version, then bounce โจ
๐ AUTHOR ๐
Written by Padraig Brady. we love him, we thank him, we stan ๐
๐ญ REPORTING BUGS ๐ญ
found a bug? don't suffer in silence, tell the girlies:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
fr fr, if something's broken, report it. that's how the whole thing gets better ๐
๐ COPYRIGHT ๐
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.
no cap, the no-warranty part is real. read it twice ๐
๐ SEE ALSO ๐
Full documentation <https://www.gnu.org/software/coreutils/realpath> or available locally via: info '(coreutils) realpath invocation'
and that's the whole page bestie ๐ this was GNU coreutils 9.12, dated September 2026, and yes she really is called REALPATH(1). mwah, go resolve something pretty ๐
โจ๐ฆ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms