SHTOOL-MKSHADOW.TMP(1)

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

πŸ’– SHTOOL-MKSHADOW πŸ’–

okay bestie, so this is a page from the GNU Portable Shell Tool manual set β€” specifically shtool-mkshadow, the lil corner of shtool that makes shadow trees out of symlinks. no cap, it's lowkey iconic. let's get into it ✨


✨ NAME ✨

shtool-mkshadow β€” GNU shtool create shadow tree using symlinks πŸ¦‹


🌸 SYNOPSIS 🌸

shtool mkshadow [-v|--verbose] [-t|--trace] [-a|--all] src-dir dst-dir

πŸ’… DESCRIPTION πŸ’…

so what does this actually do?? bestie it builds a shadow tree of src-dir over inside dst-dir. two things happen to make that work:

  • it recreates the whole directory hierarchy of src-dir underneath dst-dir
  • it makes the files of src-dir show up in the corresponding directories under dst-dir by linking them in with symbolic links

and here's the cute part: when src-dir can be reached via relative paths from dst-dir, then the relative symbolic links are used too. periodt. πŸ’«

this high-level functionality was originally designed for developers to create copies of source trees. main character energy, fr fr.


πŸŽ€ OPTIONS πŸŽ€

these are the command line options that are available, bestie β€” all three of them, we're listing them all, no skips:

  • -v, --verbose β€” display some processing information. she's chatty, she's telling you what's happening πŸ’¬
  • -t, --trace β€” enable the output of the essential shell commands which are executed. so you see the actual commands going down πŸ‘€
  • -a, --all β€” really shadow all files and directories in src-dir. the default is to skip CVS related files and directories, backup files, object files, etc. so like, default is picky, -a is "bring everyone" πŸ™ˆ

🌈 EXAMPLE 🌈

#   shell script
shtool mkshadow -v -a . /tmp/shadow

look at her go. verbose, all files, current dir into /tmp/shadow. slay πŸ”₯


πŸ‘‘ HISTORY πŸ‘‘

the GNU shtool mkshadow command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1998 for Apache. it was later revised and taken over into GNU shtool. a glow-up for the ages, honestly πŸ’œ


πŸ’– SEE ALSO πŸ’–


and that's the whole vibe check, bestie 🫢 this page is from shtool 2.0.8, dated 18-Jul-2008 β€” so yeah, vintage but she still ate. go make some shadow trees, you got this πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from