4 ms·
or why not `touch file`?
by TheSoftwareGuy 7y ago
or why not `touch file`?
- finnh 7y agoThat 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.