READLINK(1)

okay bestie, welcome to readlink, a General Commands Manual classic ✨ and honestly? it's giving "small tool, big power". she reads symlinks. she tells you the truth about where things actually live. no cap. πŸ¦‹


✨ NAME ✨

readlink β€” print value of a symbolic link or canonical file name πŸ’…


🌸 SYNOPSIS 🌸

readlink [OPTION]... [FILE]...

πŸŽ€ DESCRIPTION πŸŽ€

Print value of a symbolic link or canonical file name.

that's it. that's the whole job. she looks at a link, she says "this points over there", periodt. πŸ‘‘


πŸ’– OPTIONS πŸ’–

  • -f, --canonicalize β€” canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist 🫢
  • -e, --canonicalize-existing β€” canonicalize by following every symlink in every component of the given name recursively, and this time all components must exist β€” no skipping, no vibes-only paths 😀
  • -m, --canonicalize-missing β€” canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence β€” she's chill, she does not care if things exist fr fr πŸ™ˆ
  • -n, --no-newline β€” do not output the trailing delimiter 🚫
  • -q, --quiet β€” suppress most error messages 🀫
  • -s, --silent β€” suppress most error messages (same energy, different letter, iconic) 🀐
  • -v, --verbose β€” report error message πŸ“’
  • -z, --zero β€” separate output with NUL rather than newline πŸ‘€
  • -h, --help β€” Print help πŸ†˜
  • -V, --version β€” Print version 🏷️
  • <files> β€” the files, bestie. the actual things you're pointing her at πŸ“

πŸ’€ VERSION πŸ’€

v(uutils coreutils) 0.12.0


🌈 EXAMPLES 🌈

Get the actual file to which the symlink points:

readlink path/to/file

Get the absolute path to a file:

readlink [-f|--canonicalize] path/to/file
🧚 The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.

and that's the page, bestie πŸ“ before you go: this little legend lives in the General Commands Manual, she's tagged as READLINK(1), she's sourced from v(uutils coreutils) 0.12.0, and the whole thing is dated 2026-09-25 ⭐ go forth and canonicalize, you absolute main character πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from