linux create new file and write to it code example
Example 1: create file in linux
touch <filename>.<extension>
Example 2: how to echo to a file in linux
echo "something" >> file
touch <filename>.<extension>
echo "something" >> file