TRACELINKS(1)
π
TRACELINKS(1) β the tracelinks girlies' guide π¦
okay so bestie, welcome to tracelinks (that's the manual page TRACELINKS(1), section 1, user commands, mwah) β the little tool that snitches on every symlink you cross on your way to a file. no cap, it's iconic.
β¨ NAME β¨
tracelinks β reports on symbolic links encountered in path traversals π«
πΈ SYNOPSIS πΈ
tracelinks [OPTION]... PATH [PATH]...
π DESCRIPTION π
so the tracelinks command takes a whole list of paths and traverses each one in turn, lowkey gossiping about every symbolic link it finds in those path traversals. it's giving detective energy fr fr π
tracelinks detects and reports on dangling links and circular links it bumps into along the way β and when it does, it exits with a nonzero return code. yes queen, it will absolutely tell on your broken links π
when it reports the final element hit in the path traversal, tracelinks prints the realpath of the file along with its file type. cute, informative, slay π«Ά
π₯ OPTIONS π₯
Report on symbolic links encountered in path traversals. (that's the whole vibe of the section, keeping it π)
-a,--absoluteβ report paths as absolute paths π§-k,--keep-goingβ keep reporting on other paths after an error, because quitting at the first oopsie is not main character energy π-f,--fstypeβ print the filesystem type for each path reported π-h,--helpβ print this help message π-d,--debugβ print extra debugging toSTDERRπ-v,--versionβ print version string β
π EXIT STATUS π
0β all paths were traversed successfully. we love a clean run β¨nonzeroβ at least one path could not be fully traversed, for example because of a dangling link, a circular link, or a missing file. not me crying over a missing file π
π EXAMPLES π
tracelinks /usr/bin/awk
Trace every symbolic link crossed while resolving /usr/bin/awk, printing the final target and its file type. honestly iconic behavior π
tracelinks -f ./result
Resolve the result symlink left behind by a build and annotate each reported path with the filesystem it lives on. build artifacts found quaking ποΈ
tracelinks -k a b c
Trace several paths in one invocation, continuing past any path that produces an error instead of stopping at the first failure. resilience queen π keep going bestie, we believe in you π«Ά
π¦ SEE ALSO π¦
ln(1), readlink(1), realpath(1), stat(1), namei(1) β the whole friend group, go say hi π
ngl bestie, if you've got a dangling or circular link in there, tracelinks will find it. it does not miss. periodt π
and that's the page!! π this was tracelinks version 1.1.0, dated January 1980 (yes, the timestamp is ancient, she's vintage, we stan πΈ) β mwah, go trace some paths π
π¦ where this page comes from
- nixpkgs unstable: tracelinks 1.1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms