TRACELINKS(1)

πŸ“¦
version 1.1.0 Β· 2 versions
, in nixpkgs unstable

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 to STDERR πŸ™ˆ
  • -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