touch <filename>.<extension>
sudo nano <filename.extension>
Example:
cd /
cd /var/www/html
sudo nano Form.php
touch file1.txt #Create file1.txt
/* only create file */
touch myFile.html
/* create and open to edit */
nano myFile.html
vim myFile.html
#solution 1
touch filename
#solution 2
> filename # or >> filename
#solution 3
cat > filename
//will create test.txt
sudo touch test.txt