- Fill in whatever text you like in the file, then select File, then Save (or press Ctrl + S on the computer) in the top-right menu. Click Save after choosing a file name and location.
- To create a text file with touch, type $ touch NewFile.txt.
- To make a new file, type $ cat NewFile.txt. …
- To create a text file, simply type $ > NewFile.txt.
- Finally, we can create the file with any text editor name, such as:
Read More: How would you delete a directory in Linux?