readlink(1)
π readlink(1) β General Commands Manual
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 withNULrather 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-fversus the "all components must exist" thing with-eis 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