REALPATH(1)
π realpath(1) β the General Commands Manual, but make it cute
okay so bestie, welcome to realpath β it lives in the General Commands Manual section (that's section 1, iykyk) and honestly? it's that girl. she takes a messy path and gives you the resolved version. no cap.
β¨ NAME β¨
realpath β print the resolved path π«Ά
like literally. that's the whole job. she resolves. she prints. iconic.
π SYNOPSIS π
realpath [OPTION]... FILE...
options first, then your FILE...s β as many as you want, she's not gatekeeping π
πΈ DESCRIPTION πΈ
Print the resolved path β¨
that's the vibe. you hand her a path, she hands you back the real one. main character energy fr fr.
π OPTIONS π
-q,--quietβ do not print warnings for invalid paths π«Ά she's staying unbothered, she's keeping it cute, no drama in the output.-s,--stripβ only strip.and..components, but don't resolve symbolic links. so like, tidying only β no symlink detective work. lowkey the lazy-girl option and we respect her for it.-z,--zeroβ separate output filenames with\0rather than newline. null bytes instead of newlines β perfect for when your filenames are chaotic and contain newlines (unhinged behaviour, but okay π).-L,--logicalβ resolve..components before symlinks. like, deal with the..s first, then the symlinks. order matters bestie!!-P,--physicalβ resolve symlinks as encountered (default). this is the default so she's already doing this unless you tell her otherwise π-E,--canonicalizeβ all but the last component must exist (default). so everything except the very last bit has to actually be there. also the default, she's generous like that.-e,--canonicalize-existingβ canonicalize by following every symlink in every component of the given name recursively, all components must exist. every single component has to exist, no exceptions, she is checking β-m,--canonicalize-missingβ canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence. chill mode: she doesn't need anything to actually exist, she's just doing the math π§--relative-to <DIR>β print the resolved path relative to DIR. so you get a path that's relative to DIR instead of the absolute one π--relative-base <DIR>β print absolute paths unless paths below DIR. absolute by default, but anything underneath DIR gets to be relative. special treatment for that one directory, periodt.-h,--helpβ print help. your girl is explaining herself π-V,--versionβ print version. proof she exists and is thriving β¨<files>β the file(s) you're throwing at her. plural.FILE.... she can handle a whole stack, she's built different π¦
π VERSION π
she's all grown up: v(uutils coreutils) 0.12.0 π
β οΈ quick vibe check:-P/--physicaland-E/--canonicalizeare the defaults, so if you don't pass anything you're already running physical resolution with everything-but-the-last-component required to exist. and-s/--stripis the odd one out β no symlink resolving at all, just.and..being tidied away.
okay that's the whole page bestie, go resolve some paths and slay π πΈ
v(uutils coreutils) 0.12.0 Β· 2026-09-17 Β· that's the source, the version and the date β mwah, bye ππ
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms