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 a NUL, 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:

fr fr, if something's broken, report it. that's how the whole thing gets better ๐Ÿ’–

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