ln(1)
π NAME π
ok so like. ln β Make links between files. that's it, that's the vibe. you're linking files. slay. π
this one's from the General Commands Manual, section 1, bestie, so it's a user command, not some deep kernel nonsense. we love that for us.
β¨ SYNOPSIS β¨
ln [--backup] [-b ] [-f|--force] [-i|--interactive]
[-n|--no-dereference] [-L|--logical] [-P|--physical] [-s|--symbolic]
[-S|--suffix] [-t|--target-directory] [-T|--no-target-directory]
[-r|--relative] [-v|--verbose] [-h|--help] [-V|--version] <files>
πΈ DESCRIPTION πΈ
Make links between files.
like literally that's the whole thing. you point at a file, you get another name for it. it's giving "two names, one file" energy. iconic behavior fr fr π«Ά
π OPTIONS π
ok bestie grab a snack this is the long part but i promise every single flag matters
--backup[=<CONTROL>]β make a backup of each existing destination file. yes she's protective of your files, we stan a cautious queen π-bβ like--backupbut does not accept an argument. same energy, less talk.-f,--forceβ remove existing destination files. no asking, no mercy, just vibes. π€-i,--interactiveβ prompt whether to remove existing destination files. she'll ask first because she's polite like that β¨-n,--no-dereferenceβ treatLINK_NAMEas a normal file if it is a symbolic link to a directory-L,--logicalβ followTARGETs that are symbolic links-P,--physicalβ make hard links directly to symbolic links-s,--symbolicβ make symbolic links instead of hard links. the soft launch of links, if you will π¦-S,--suffix <SUFFIX>β override the usual backup suffix-t,--target-directory <DIRECTORY>β specify theDIRECTORYin which to create the links-T,--no-target-directoryβ treatLINK_NAMEas a normal file always-r,--relativeβ create symbolic links relative to link location-v,--verboseβ print name of each linked file. she's a yapper and honestly? valid π-h,--helpβ Print help-V,--versionβ Print version<files>β the files. the whole point. the main characters π
π EXTRA π
ok so there's like forms and the synopsis does NOT show them which is lowkey rude of it but here's the tea:
In the 1st form, create a link to TARGET with the name LINK_NAME. In the 2nd form, create a link to TARGET in the current directory. In the 3rd and 4th forms, create links to each TARGET in DIRECTORY.
Create hard links by default, symbolic links with --symbolic. By default, each destination (name of new link) should not already exist.
β οΈ heads up bestie: when creating hard links, each TARGET must exist. like actually exist. no ghost targets allowed. π»
Symbolic links can hold arbitrary text; if later resolved, a relative link is interpreted in relation to its parent directory.
The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values:
none,offβ never make backups (even if--backupis given)numbered,tβ make numbered backupsexisting,nilβ numbered if numbered backups exist, simple otherwisesimple,neverβ always make simple backups
periodt. those are the options, no cap. π
β VERSION β
v(uutils coreutils) 0.7.0
ok that's the whole page, bestie, you're officially a ln girlie now π§ββοΈ
this lil love letter to links comes from the uutils coreutils crew, version 0.7.0 β that's the source, that's the version, and the footer it was born with said ln (uutils coreutils) 0.7.0, so shoutout to them for making this whole thing exist π go make some links, you got this π«Ά
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
- fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms