SYMLINKS(8)
π SYMLINKS(8) β the symlink glow-up station
okay bestie, so this is symlinks, from the System Manager's Manual β a symbolic link maintenance utility. yes, it's giving "old school sysadmin" but honestly it's so useful. let's get into it π
β¨ NAME β¨
symlinks β the symbolic link maintenance utility π« (yes that's the whole name, she's modest)
π¦ SYNOPSIS π¦
symlinks [ -cdorstv ] dirlist
πΈ DESCRIPTION πΈ
so symlinks scans directories for symbolic links and lists them on stdout β and honestly? it's lowkey a broken-link detective π it's often revealing broken links in the filesystem tree, which is the whole vibe check.
every link gets output with a classification, and there are six: relative, absolute, dangling, messy, lengthy, or other_fs. slay, let's break each one down π
relativelinks β these are expressed as paths relative to the directory in which the links reside. usually independent of the mount point of the filesystem. very chill, very portable π«Άabsolutelinks β these are given as an absolute path from the root directory as indicated by a leading slash (/). main character energy, zero flexibility.danglinglinks β the target of the link does not currently exist π this commonly occurs for absolute links when a filesystem is mounted at other than its customary mount point (such as when the normal root filesystem is mounted at/mntafter booting from alternative media). yeah. that's the sad one.messylinks β links which contain unnecessary slashes or dots in the path π these get cleaned up as well when-cis specified.lengthylinks β links which use"../"more than necessary in the path (eg./bin/vi -> ../bin/vim) π these are only detected when-sis specified, and are only cleaned up when-cis also specified. so yes, you need both. team work.other_fsβ those links whose target currently resides on a different filesystem from wheresymlinkswas run (most useful with-r). crossing the boundary fr fr π
π OPTIONS π
-cβ convert absolute links (within the same filesystem) to relative links β¨ this permits links to maintain their validity regardless of the mount point used for the filesystem β a desirable setup in most cases, no cap. this option also causes any messy links to be cleaned up, and, if-swas also specified, then lengthy links are also shortened. links affected by-care prefixed withchangedin the output π-dβ causes dangling links to be removed π bye bestie-oβ fix links on other filesystems encountered while recursing. normally, other filesystems encountered are not modified bysymlinks. so this is you giving explicit permission π«‘-rβ recursively operate on subdirectories within the same filesystem π³-sβ causes lengthy links to be detected π-tβ used to test for whatsymlinkswould do if-cwere specified, but without really changing anything π the ultimate "what if" simulator, zero commitment-vβ show all symbolic links. by default, relative links are not shown unless-vis specified π
π BUGS π
symlinksdoes not recurse or change links across filesystems. periodt. that's the limit, she said no. π
π«Ά AUTHOR π«Ά
symlinks was created by Mark Lord <mlord@pobox.com>. the current maintainer is J. Brandt Buckley <brandt@runlevel1.com>. legends, both of them π
π₯ SEE ALSO π₯
okay that's the whole thing bestie, go forth and fix those links πβ¨π¦
Version 1.4.3 β April 2014 β SYMLINKS(8), from the System Manager's Manual π that's the source, the version, and the date all in one cute little sign-off, iykyk π
π¦ where this page comes from
- arch rolling: symlinks 1.4.3-4 Β· MIT
- nixos 26.05: symlinks 1.4.3
- nixpkgs unstable: symlinks 1.4.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms