Re:The Art of Command Line (2015)
by TheSoftwareGuy on Thursday May 23, 2019 @09:41AM
(#19991672)
or why not `touch file`?
[ Parent
| on HN ]
That works to create an empty file if none exists, but if the file already exists then 'touch' simply updates its atime/mtime and doesn't alter the contents. This latter effect is actually the purpose of touch; the file creation part is just a side effect.