How to create a text file in a folder In windows I right click and then there is an option to create a text file.

How to do so in mac?
You can also do this in Terminal. Go to the directory where you want to create the file, then run the following:

touch file.txt


Or redirect 'nothing' to a text file

&gt; file.txt