DEV Community


Discussion on: 8 Linux Commands Everyone Should Know

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

boiliev profile image
Boyan Iliev Author

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

moopet profile image
Ben Sinclair

I wrote an entire post about that once :)