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 \0 instead 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