chraebsli@programming.dev to Programmer Humor@programming.dev · 7 months agoTouch a file in Linuxprogramming.devimagemessage-square75fedilinkarrow-up11.15Karrow-down130
arrow-up11.12Karrow-down1imageTouch a file in Linuxprogramming.devchraebsli@programming.dev to Programmer Humor@programming.dev · 7 months agomessage-square75fedilink
minus-squareBestBouclettes@jlai.lulinkfedilinkarrow-up86·edit-27 months agoThe intended use of touch is to update the timestamp right?
minus-squareBjörn Tantau@swg-empire.delinkfedilinkarrow-up96arrow-down1·7 months agoYeah. It could just as well have issued a file not found error when you try to touch a nonexistent file. And we would be none the wiser about what we’re missing in the world.
minus-squareBestBouclettes@jlai.lulinkfedilinkarrow-up9·7 months agoIf you touch -c it should work I guess
The intended use of
touch
is to update the timestamp right?Yeah. It could just as well have issued a file not found error when you try to touch a nonexistent file. And we would be none the wiser about what we’re missing in the world.
If you
touch -c
it should work I guess