linux terminal create file with text code example
Example 1: linux terminal create file
/* only create file */
touch myFile.html
/* create and open to edit */
nano myFile.html
vim myFile.html
Example 2: create a file with text in linux
cat > ~/the/path/fileName.txt
the text{ctrl+D to end text entry}