LN(1)

πŸ“¦ version 0.12.0, in arch rolling

πŸ’… LN(1) β€” General Commands Manual, but make it group chat πŸ’…

okay bestie, welcome to the ln(1) page from the General Commands Manual. This is the file-linking manual, and it is genuinely giving filesystem matchmaker energy πŸ’–.


🌸 NAME 🌸

ln β€” make links between files. That's the whole name section. Short, iconic, periodt ✨.

πŸ¦‹ SYNOPSIS πŸ¦‹

ln [OPTION]... [-T] TARGET LINK_NAME
ln [OPTION]... TARGET
ln [OPTION]... TARGET... DIRECTORY
ln [OPTION]... -t DIRECTORY TARGET...

πŸŽ€ DESCRIPTION πŸŽ€

Make links between files. Literally that. It's the main-character job of ln, and I'm obsessed 🫢.

✨ OPTIONS ✨

Okay bestie, here is the full options buffet β€” no skipping, no cap:

  • --backup[=<CONTROL>] β€” make a backup of each existing destination file πŸ’Ύ
  • -b β€” like --backup but does not accept an argument
  • -f, --force β€” remove existing destination files
  • -i, --interactive β€” prompt whether to remove existing destination files
  • -n, --no-dereference β€” treat LINK_NAME as a normal file if it is a symbolic link to a directory
  • -L, --logical β€” follow TARGETs that are symbolic links
  • -P, --physical β€” make hard links directly to symbolic links
  • -s, --symbolic β€” make symbolic links instead of hard links
  • -S, --suffix <SUFFIX> β€” override the usual backup suffix
  • -t, --target-directory <DIRECTORY> β€” specify the DIRECTORY in which to create the links
  • -T, --no-target-directory β€” treat LINK_NAME as a normal file always
  • -r, --relative β€” create symbolic links relative to link location
  • -v, --verbose β€” print name of each linked file
  • -h, --help β€” Print help
  • -V, --version β€” Print version
  • <files> β€” the <files> placeholder, kept exactly as it appears in the options list 🫢

πŸ”₯ EXTRA πŸ”₯

Okay, form-by-form, because the synopsis has four whole moods:

  1. In the 1st form, create a link to TARGET with the name LINK_NAME.
  2. In the 2nd form, create a link to TARGET in the current directory.
  3. 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. When creating hard links, each TARGET must exist. Symbolic links can hold arbitrary text; if later resolved, a relative link is interpreted in relation to its parent directory. That last part is the lore, bestie 🌈.

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 --backup is given)
  • numbered, t β€” make numbered backups
  • existing, nil β€” numbered if numbered backups exist, simple otherwise
  • simple, never β€” always make simple backups

πŸ‘‘ VERSION πŸ‘‘

v(uutils coreutils) 0.12.0 is the version on this page. Slay πŸ’….

xoxo, your ln(1) bestie β€” source/version: v(uutils coreutils) 0.12.0, dated 2026-09-17 πŸ’–πŸ«Άβœ¨

πŸ“¦ where this page comes from