DEV Community

Discussion on: Useful Linux commands

jonrandy profile image
Jon Randy • Edited on

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

laxmanvijay profile image
laxman Author

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