TMPERAMENTAL(1)
π NAME π
okay so bestie, say hi to tmperamental β it's the little tool that helps you avoid writing to /tmp. that's it. that's the whole job. no cap. π
β¨ SYNOPSIS β¨
tmperamental cmd arg1 arg2 ...
yeah you literally just yeet your command in after it. iconic behaviour honestly. π¦
πΈ DESCRIPTION πΈ
so here's the tea, bestie: tmperamental uses a preloaded library that intercepts filesystem writes, and it makes writes go LOUDLY WRONG if anything tries to write into /tmp/*. like, not a quiet little oops. a whole scene. π
the whole idea is this: by setting TMPDIR and friends, it catches programs in the act of not respecting those env-vars. gotcha, bestie. π«Ά
π₯ USAGE π₯
just prefix the command you wanna run with tmperamental and it should cause it to abort if it ever tries to write anywhere within /tmp.
ngl, this is pretty brutal, so you probably only want to use it for testing. it is NOT the vibe for your everyday setup, ok? π
π ENVIRONMENT π
- if
TMPDIRis unset,tmperamentalwill set it automatically to$HOME/tmp. it's got you. β¨ tmperamentalusesLD_PRELOADto load a custom library calledlibtmperamental.sothat intercepts library calls. yes queen, we're intercepting. π
π§ LIMITATIONS π§
okay so this is the part where we keep it real fr fr:
tmperamental only catches writes to /tmp at shared object library calls using the standard libc interface. so a statically-compiled program that makes system calls directly will be able to write to /tmp without being intercepted. it just slips right past. π
it's giving "very good, not omniscient." know the limits, bestie. π
that's the whole page, gorgeous. this was tmperamental 1.2, born March 2020 β and it's still out here protecting /tmp like the main character it is. slay, stay hydrated, and keep your tmp clean πβ¨π
π¦ where this page comes from
- debian bookworm: tmperamental 1.4 Β· MIT
- ubuntu jammy: tmperamental 1.4 Β· MIT
- ubuntu noble: tmperamental 1.4 Β· MIT
- ubuntu questing: tmperamental 1.6
- ubuntu resolute: tmperamental 1.6build1 Β· MIT
- ubuntu stonking: tmperamental 1.6build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms