touch is actually for updating the access and modification times of the given file or files to the current time. The fact that it creates new files if they don't currently exist is merely a convenient side effect - it is not the command's primary purpose
I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
touch
is actually for updating the access and modification times of the given file or files to the current time. The fact that it creates new files if they don't currently exist is merely a convenient side effect - it is not the command's primary purposeI didn't know that. Thank you for clarifying!
I wrote an entire post about that once :)