Create File(s)

Create (or edit) file

Syntax

vi [new-file-name]

The file extension can be anything that you want.

If the file doesn't exist, an empty one will be created and a text editor will open, allowing you to add content. If the file already exists, a text editor will allow you to edit the contents.

Example

vi index.html