chraebsli to Programmer [email protected] • 11 months agoTouch a file in Linuxprogramming.devimagemessage-square91fedilinkarrow-up11.17Karrow-down129
arrow-up11.14Karrow-down1imageTouch a file in Linuxprogramming.devchraebsli to Programmer [email protected] • 11 months agomessage-square91fedilink
minus-squareTrailblazing Braille Taserlinkfedilink32•11 months agoBecause now touch does two things. Without touch, we could “just” use the shell to create files. : > foo.txt
minus-square@[email protected]linkfedilink21•11 months agoTouch does one thing from a “contract” perspective: Ensure the timestamp of <file> is <now>
minus-square@[email protected]linkfedilink14•11 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?