READLINK(1)
β¨ READLINK(1) β User Commands β¨
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 ifPOSIXLY_CORRECTis not set). so quiet mode is the default unless that env var says otherwise. π-v,--verboseβ report error messages (on by default ifPOSIXLY_CORRECTis 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:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
π COPYRIGHT π
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
- arch rolling: coreutils 9.12-2 Β· GPL-3.0-or-later AND GFDL-1.3-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms