
Raquel N. answered 03/09/21
I work in the technology industry and I help you with HTML and CSS
You can create an HTML file in the Linux command line with a text editor.
Before you start, choose your favorite text editor. For this example, I am using Nano editor.
Steps:
cd Desktop (or choose whatever directory you would like to save the file.)
mkdir website
nano index.html
Once you are in the Nano editor mode and you want to save and exit the editor. Type
Ctrl + o to save the file and press ENTER
Ctrl + x to exit
Let's breakdown to see what all these commands mean:
cd => changes the current directory to the Desktop
mkdir => create a folder for the website project
Nano => the editor where you will write your code