create file and add data in text file in linux code example
Example: create a file with text in linux
cat > ~/the/path/fileName.txt
the text{ctrl+D to end text entry}
cat > ~/the/path/fileName.txt
the text{ctrl+D to end text entry}