SHTOOL-MKLN.TMP(1)

πŸ“¦
version 2.0.8 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– SHTOOL-MKLN.TMP(1) πŸ’–

okay so bestie, welcome to SHTOOL-MKLN.TMP(1), from the GNU Portable Shell Tool era β€” this is the shtool fam's glow-up version of ln(1), and she is serving. πŸŽ€


✨ NAME ✨

shtool-mkln β€” the GNU shtool enhanced ln(1) replacement. yes, it's literally that. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

shtool mkln [-t|--trace] [-f|--force] [-s|--symbolic] src-path [src-path
...]  dst-path

🌸 DESCRIPTION 🌸

So this is a ln(1)-style command, right, but make it fancy. ✨ It's been enhanced to automatically calculate and use relative links with the shortest possible path β€” if possible, bestie, we love an honest queen. πŸ’–

When does it do this slay? Usually when src-path and dst-path are not absolute paths, or at the very least they share a common prefix other than the root directory ("/"). iykyk 🧚

And when you specify more than one src-path? Not me casually dropping multiple sources β€” all of them get linked into dst-path. periodt. πŸ‘‘


πŸ’… OPTIONS πŸ’…

The following command line options are available. She's got range, ngl.

  • -t, --trace β€” turns on the output of the essential shell commands that get executed. it's giving transparency, we stan. πŸ”
  • -f, --force β€” forces the creation of the link even if it already exists. Default is to fail with error, so like... no -f, no link, that's the vibe. πŸ’€
  • -s, --symbolic β€” creates a symbolic link instead of a hard-link. choose your fighter. πŸ¦‹

πŸ“ EXAMPLE πŸ“

 #   shell script
 shtool mkln -s foo/bar baz/quux

see how clean that is?? obsessed. 😭


πŸ‘‘ HISTORY πŸ‘‘

The GNU shtool fixperm command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1998 for ePerl. an icon, a legend, the moment. 🌈


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole thing, bestie!! 🫢 this page is from shtool 2.0.8, dated 18-Jul-2008 β€” yeah she's a lil vintage but she ate and left no crumbs. mwah πŸ’‹ πŸŒΈπŸ’–πŸŽ€

πŸ“¦ where this page comes from