DEV Community

Discussion on: Useful Linux commands

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • Edited

touch {filename} => creates a file

Not really - 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. There are many ways to create a new file

Collapse
 
laxmanvijay profile image
laxman

Really? I thought creating a file was its purpose, thanks for your valuable feedback Jon.
Will update it :)