READLINK(1)
π NAME π
readlink β print resolved symbolic links or canonical file names
okay so bestie, this is the readlink(1) page and I'm gonna hold your hand through the whole thing π it's short, it's sweet, it's lowkey iconic, and it has just enough sharp edges that you wanna know them before you poke.
π SYNOPSIS π
readlink [OPTION]... FILE...
like, you give it options, you give it files, it does the thing. that's the vibe β¨
β¨ DESCRIPTION β¨
first thing's first, and the page itself is being so honest with you: realpath(1) is a better command for canonicalization functionality. fr fr. so if canonicalizing paths is literally your whole personality, go be besties with realpath(1) instead. no hard feelings, readlink gets it π
that said β what it does is print value of a symbolic link or canonical file name. π¦
π OPTIONS π
-f,--canonicalizeβ canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist. so like, it chases every link down the whole path, and the last piece is allowed to be a little ghostie π» β everything before it has to actually exist.-e,--canonicalize-existingβ canonicalize by following every symlink in every component of the given name recursively; all components must exist. no ghosts allowed, everything has to be real, hold the delusion β-m,--canonicalize-missingβ canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence. zero requirements. it simply does not care whether anything exists and honestly? main character energy π-n,--no-newlineβ do not output the trailing delimiter. so no newline at the end, you get the raw value and nothing else, queen of clean output π-q,--quietβ the page literally just lists it right here with no extra words, so I'm passing that energy along: here it is, it exists, it's the quiet one π€«-s,--silentβ suppress most error messages (on by default ifPOSIXLY_CORRECTis not set). note the "on by default" part β that's conditional on that env var, so don't come for me π-v,--verboseβ report error messages (on by default ifPOSIXLY_CORRECTis set). yep, flip side of the above, same env var, opposite default. the way thatPOSIXLY_CORRECTis out here deciding your whole personality π-z,--zeroβ end each output line withNUL, not newline. perfect for when a newline would ruin your entire life π--helpβ display this help and exit. the classic escape hatch π«Ά--versionβ output version information and exit. for when you just gotta know β
heads up bestie:-sand-vare literally the same vibe-flip of each other, and which one is default depends on whetherPOSIXLY_CORRECTis set. not me warning you twice, but I'm warning you twice π
βοΈ AUTHOR βοΈ
Written by Dmitry V. Levin. thank you king, we appreciate you π
π REPORTING BUGS π
if something's busted, go tell the actual humans:
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page:
https://www.gnu.org/software/coreutils/ - General help using GNU software:
https://www.gnu.org/gethelp/ - Report any translation bugs to:
https://translationproject.org/team/
please be nice to them, they're doing their best πΈ
π SEE ALSO π
Full documentation https://www.gnu.org/software/coreutils/readlink β or available locally via: info '(coreutils) readlink invocation' (yes, offline bestie, the info page is right there π§)
- Packaged by Ubuntu (9.10-1ubuntu2)
- 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.
the NO WARRANTY thing is real, not a bit. it is free software and it comes with no promises, so read that line twice π
and that's the whole page, babe π slay, you now know readlink better than 90% of people who type it daily. this was GNU coreutils 9.10, from August 2026, aka the READLINK(1) era β go canonicalize something cute β¨ππ¦
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms