readlink(1)

πŸ“¦
version 0.7.0 Β· 3 versions
, in epel 10, fedora 43, fedora 44

okay bestie, sit down, grab a boba πŸ§‹ because today we're learning readlink, and honestly? it's giving "tiny command, huge main character energy" πŸ‘‘


✨ NAME ✨

readlink β€” print the value of a symbolic link or the canonical file name. that's it. that's the whole job. iconic behavior πŸ’–


🌸 SYNOPSIS 🌸

readlink [-f|--canonicalize] [-e|--canonicalize-existing]
[-m|--canonicalize-missing] [-n|--no-newline] [-q|--quiet] [-s|--silent]
[-v|--verbose] [-z|--zero] [-h|--help] [-V|--version] [files]

like yes, that's a lot of little dashy boys, but they're all your friends, i promise 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

print the value of a symbolic link, or the canonical file name. that's the vibe. you point it at a symlink, it tells you where that symlink is actually pointing, no drama, no guessing, just receipts ✨


πŸ‘‘ OPTIONS πŸ‘‘

  • -f, --canonicalize β€” canonicalize by following every symlink in every component of the given name, recursively. lowkey important caveat: all but the last component must exist. the last one gets a pass, bestie πŸ’…
  • -e, --canonicalize-existing β€” same recursive symlink-following energy, but stricter: all components must exist. no missing pieces allowed, periodt.
  • -m, --canonicalize-missing β€” again, canonicalize by following every symlink in every component of the given name recursively, but this time there are no requirements on whether those components exist. chaotic? yes. useful? also yes πŸ¦‹
  • -n, --no-newline β€” do not output the trailing delimiter. so no little newline at the end. keep it tight ✨
  • -q, --quiet β€” suppress most error messages. shhh. we don't talk about it 🀫
  • -s, --silent β€” suppress most error messages. yeah, same energy as -q, they're twins fr fr πŸ’œ
  • -v, --verbose β€” report the error message. so when something goes wrong, it actually tells you πŸ‘€
  • -z, --zero β€” separate output with NUL rather than newline. that's the zero byte, not the letter. very specific, very cute πŸŽ€
  • -h, --help β€” print help. your girl always comes through πŸ’–
  • -V, --version β€” print version. so you know exactly which era of this command you're living in ⭐
  • [files] β€” the file(s) you're throwing at it. yes, you can pass more than one. go off 🌈

🌟 VERSION 🌟

v(uutils coreutils) 0.7.0


and that's the whole page bestie, no cap πŸ’…

ngl the "all but the last component must exist" thing with -f versus the "all components must exist" thing with -e is exactly the kind of detail people get wrong on the first try, so keep those receipts safe πŸ™ˆ

readlink (uutils coreutils) 0.7.0 β€” that's the source and the version, mwah, slay, hope this helped you understand your symlinks better πŸŽ€βœ¨πŸ¦‹πŸ«Ά

πŸ“¦ where this page comes from
  • epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
  • epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
  • fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
  • fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms