SYMLINKS(1)
β¨ SYMLINKS β the link maintenance glow-up you didn't know you needed β¨
okay bestie, come sit with me because we're talking about symlinks(1) from the General Commands Manual and honestly? she's a whole vibe. π
π¦ NAME π¦
symlinks β the symbolic link maintenance utility. yes queen, link upkeep, it's giving tidy filesystem energy π
πΈ SYNOPSIS πΈ
symlinks [ -cdorstvC ] LINK|DIR ...
π DESCRIPTION π
so like, symlinks is this genuinely iconic little utility made for the girlies and bros who maintain FTP sites, CDROMs, and Linux software distributions. she scans directories for symbolic links and lists them on stdout, and lowkey she's always exposing flaws in the filesystem tree like a friend who notices your ex in the group photo. π
every link gets output with a classification, and the options are relative, absolute, dangling, messy, lengthy, or other_fs. let's break them down, no cap:
- relative links are the ones expressed as paths relative to the directory where the links themselves live. usually independent of the mount point of the filesystem β she's flexible, she adapts, main character energy fr. β¨
- absolute links are the ones given as an absolute path from the root directory, as indicated by a leading slash (
/). committed to the whole journey, love that for her. π - dangling links are links whose target does not currently exist. this commonly happens with absolute links when a filesystem is mounted somewhere other than its customary mount point β for example when the normal root filesystem is mounted at
/mntafter booting from alternative media. it's giving ghosted. π - messy links are links containing unnecessary slashes or dots in the path. these get cleaned up too when
-cis specified. she's a little unkempt but we can fix her π - lengthy links are links that use
../more than necessary in the path (eg./bin/vi -> ../bin/vim). these are only detected when-sis specified, and only cleaned up when-cis also specified. two-step process, periodt. β - other_fs are those links whose target currently resides on a different filesystem from where
symlinkswas run. most useful with-r. π
π OPTIONS π
-cβ convert absolute links (within the same filesystem) to relative links. this lets links maintain their validity regardless of the mount point used for the filesystem β a desirable setup in most cases, ngl. 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-cget prefixed withchangedin the output. she's a fixer, she's a healer π«Ά-dβ causes dangling links to be removed. bye boo, you don't exist π-oβ fix links on other filesystems encountered while recursing. normally, other filesystems encountered are not modified bysymlinks. respect the boundaries unless you say otherwise π-rβ recursively operate on subdirectories within the same filesystem. she goes deep, but only within her own lane. π-sβ causes lengthy links to be detected. π-tβ is used to test for whatsymlinkswould do if-cwere specified, but without really changing anything. it's a dress rehearsal, a vibe check, a dry run before the actual slay. β¨-vβ show all symbolic links. by default, relative links are not shown unless-vis specified. she's shy until you ask nicely. π-Cβ chroot to current directory before looking at dirlist. you need to be root for thechroot()call to work, and all paths given as args must be relative to the current directory. big girl permissions only, know your limits bestie π
π BUGS π
symlinks does not recurse or change links across filesystems. she said "not my jurisdiction" and honestly? boundaries. π§
π AUTHOR π
symlinks has been written by Mark Lord <mlord@pobox.com>, the original developer and maintainer of the IDE Performance Package for linux, the Linux IDE Driver subsystem, hdparm, and a current day libata hacker. a literal legend, an icon, a pioneer β we stan a low-level kernel king π«‘π
π SEE ALSO π
and that's the whole page bestie!! this was Version 1.7, dated Jan 2020 β go forth and fix those links, you absolute icon πβ¨ππ¦πΈ
π¦ where this page comes from
- centos-stream 10: symlinks 1.7-13.el10 Β· Symlinks
- centos-stream 9: symlinks 1.7-6.el9 Β· Copyright only
- fedora 43: symlinks 1.7-13.fc43 Β· Symlinks
- fedora 44: symlinks 1.7-14.fc44 Β· Symlinks
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms