TOUCH(1plan9)
π NAME π
okay so bestie, meet touch β she sets the modification date of a file. that's it. that's her whole thing. and she eats every single time. π
β¨ SYNOPSIS β¨
touch [ -c ] [ -t time ] file ...
literally just that. short. sweet. iconic. no cap.
π¦ DESCRIPTION π¦
so like, touch tries to set the modification time of the files to time β and if you don't give it a time, it just uses the current time by default. queen behavior honestly. β°β¨
and here's the part where she gets a lil magical: if a file does not exist, touch will create it. new file, who dis? πΈ
but wait β if option-cis present, she will NOT create it. no file, no touch, no drama. the-cis giving "i'm not doing all that." π
the options, since we're being thorough:
-cβ don't create the file if it isn't already there. she simply won't.-t timeβ set the modification time to time instead of the current time. you pick the vibe, she applies it. π₯
π§ SOURCE π§
the origin story lives at:
/src/cmd/touch.c
yes bestie, we read the source. iykyk. π
π SEE ALSO π
go be nosy, these are the besties in the same friend group:
π BUGS π
okay so there's one little thing and it's lowkey tragic:
touch will not touch directories. π«
directories are simply not on her radar. she said "not my genre." periodt.
and that's the whole page, bestie β this was the 1plan9 manual, TOUCH(1plan9), and yes the footer says the exact same thing as the header because that's just how these pages roll π stay slaying, go touch some files (not directories tho) β¨π
π¦ where this page comes from
- debian bookworm: 9base 1:6-13 Β· Lucent
- debian trixie: 9base 1:6-14 Β· Lucent
- ubuntu jammy: 9base 1:6-11 Β· Lucent
- ubuntu noble: 9base 1:6-14 Β· Lucent
- ubuntu questing: 9base 1:6-15
- ubuntu resolute: 9base 1:6-15build1 Β· Lucent
- ubuntu stonking: 9base 1:6-15build1 Β· Lucent
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms