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