SHTOOL-MKSHADOW.TMP(1)
π 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-dirunderneathdst-dir - it makes the files of
src-dirshow up in the corresponding directories underdst-dirby 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 insrc-dir. the default is to skip CVS related files and directories, backup files, object files, etc. so like, default is picky,-ais "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
- debian bookworm: shtool 2.0.8-10 Β· GPL-2.0-or-later
- debian trixie: shtool 2.0.8-10 Β· GPL-2.0-or-later
- ubuntu jammy: shtool 2.0.8-10 Β· GPL-2.0-or-later
- ubuntu noble: shtool 2.0.8-10 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms