Create a file using command prompt

To create a file from command prompt, follow these steps below:

  • ​Open your command line prompt(CMD) or Terminal
  • Switch to the folder you want your file to be created at (cd foldername)
  • Inside the command prompt type MKDIR filename 
mkdir filename_to_be_used
  • Press Enter and check the folder

After the above steps, your file should be created.