---

Best Ways to Create a File in Linux

You can create a file using touch command. To create a file using touch command run below command. It will create demo.txt file in the current directory:

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis