Creating Files

To create a blank file you can use the touch1 command.

$ touch hello.txt

This is situationally useful, but more often than not you will create files using a program called a "text editor."

There are some text editors, like vim, which run entirely inside the terminal.2

One of the more popular ones at time of writing is Visual Studio Code. If you weren't otherwise shown a different option, that is a decent default. Install it and then you can use it to create and edit files.

1

I have no clue why this is called touch. 2: These have their die hard supporters. The lunatics. 3: This book has been written inside Visual Studio Code.