DEV Community

[Comment from a deleted post]
Collapse
 
jonrandy profile image
Jon Randy 🎖️

The description for touch is not really correct - touch is a command used to update the access date and/or modification date of a computer file or folder. The fact that it creates the file if it doesn't exist is purely a side effect, not its primary function. There are many ways to create a new file

Collapse
 
harshhhdev profile image
Harsh Singh

I see. Thanks for pointing it out! I'll update it with a credit to you :)