DEV Community

Discussion on: Top 50 Linux Commands You Must Know as a Regular User

Collapse
 
jonrandy profile image
Jon Randy 🎖️

touch is actually for updating the last access date/time of a file. The fact that it creates the file if it doesn't exist is just a convenient side effect

Collapse
 
kiransethu46 profile image
Kiran Sethumadhavan

yes you are right !, but it can also be used for creating a file.