DEV Community

Discussion on: 8 Linux Commands Everyone Should Know

Collapse
 
jonrandy profile image
Jon Randy 🎖️

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

Collapse
 
boiliev profile image
Boyan Iliev

I didn't know that. Thank you for clarifying!

Collapse
 
moopet profile image
Ben Sinclair

I wrote an entire post about that once :)