chraebsli to Programmer Humor@programming.dev • 8 months agoTouch a file in Linuxprogramming.devimagemessage-square92fedilinkarrow-up11.2Karrow-down131
arrow-up11.17Karrow-down1imageTouch a file in Linuxprogramming.devchraebsli to Programmer Humor@programming.dev • 8 months agomessage-square92fedilink
minus-squareTrailblazing Braille Taserlinkfedilink35•8 months agoBecause now touch does two things. Without touch, we could “just” use the shell to create files. : > foo.txt
minus-square@deegeese@sopuli.xyzlinkfedilink20•8 months agoTouch does one thing from a “contract” perspective: Ensure the timestamp of <file> is <now>
minus-square@dan@upvote.aulinkfedilink15•8 months agoSystemd also does one thing from a contract perspective: run your system
Because now touch does two things.
Without touch, we could “just” use the shell to create files.
Touch does one thing from a “contract” perspective:
Ensure the timestamp of <file> is <now>
Systemd also does one thing from a contract perspective: run your system
Oh no.
:(
Does it do it well, though?