READLINK(1)

okay bestie, welcome to readlink πŸ’… it lives in the User Commands corner of your manual, and it's here to spill the tea on symlinks.


πŸŽ€ NAME πŸŽ€

readlink β€” print resolved symbolic links or canonical file names


🌸 SYNOPSIS 🌸

readlink [OPTION]... FILE...

πŸ¦‹ DESCRIPTION πŸ¦‹

first things first, no gatekeeping: realpath(1) is a better command for canonicalization functionality. fr fr. that's straight from the source, not me being dramatic.

what does this one do though? it prints the value of a symbolic link or canonical file name. that's the whole vibe. πŸ”₯


πŸ’– OPTIONS πŸ’–

  • -f, --canonicalize β€” canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist. like, everything except the final piece has to actually be there, no exceptions. πŸ‘‘
  • -e, --canonicalize-existing β€” canonicalize by following every symlink in every component of the given name recursively; all components must exist. stricter than -f, the whole chain gotta be real. ⭐
  • -m, --canonicalize-missing β€” canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence. no vibe check required, it just goes. 🧚
  • -n, --no-newline β€” do not output the trailing delimiter. she said no extra characters at the end, periodt. πŸŽ€
  • -q, --quiet β€” (no description in the original, bestie β€” it's just there, living its mystery life πŸ™ˆ)
  • -s, --silent β€” suppress most error messages (on by default if POSIXLY_CORRECT is not set). so quiet mode is the default unless that env var says otherwise. πŸ’œ
  • -v, --verbose β€” report error messages (on by default if POSIXLY_CORRECT is set). so loud mode is the default when that env var is set. literally the flip side of -s. 😭
  • -z, --zero β€” end each output line with NUL, not newline. perfect for when newlines are giving chaos. ✨
  • --help β€” display this help and exit
  • --version β€” output version information and exit

πŸ‘‘ AUTHOR πŸ‘‘

Written by Dmitry V. Levin. we stan. 🫢


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me gatekeeping the contact info:


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. read that again bestie, NO WARRANTY. 🫠

🌟 SEE ALSO 🌟

Full documentation <https://www.gnu.org/software/coreutils/readlink>

or available locally via: info '(coreutils) readlink invocation'


okay that's the whole page, mwah πŸ’‹ this was GNU coreutils 9.12, dated September 2026 β€” thanks for coming to my ted talk, now go resolve some symlinks bestie πŸ¦‹πŸ’–

πŸ“¦ where this page comes from