Creating a Blank File From your Terminal

Creating a Blank File From your Terminal

Creating a Blank File From your Terminal

My Computer Setup

  • Python3 (Finally getting used to adding parentheses around my print statements )
  • macOS

How To Create a Blank File From your Terminal

Ever need a blank file to mock up a file system while on Linux? USE TOUCH! It’s pretty useful when you’re navigating through folders and want to spin up a doc really quick.

touch yourFileName.txt

If you then just list what’s in your current directory, you should see a blank text file labeled yourFileName or whatever personally decided to name your doc. This one was super simple. Check this out if you’re interested in Android dev. Happy coding!

Leave a Comment