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

At the start of this book I showed you VSCodium. If you weren't otherwise shown a different option, that is a decent default. You can use it to create and edit files.

1

This is called touch because it will "touch" a file and update its "last updated timestamp" but change nothing else.

2

These have their die hard supporters. The lunatics.

3

This book has been written inside Visual Studio Code.