how to append text to file in linux code example
Example 1: add a line at the end of a file linux
echo 'text here' >> filename
Example 2: bash add text to file
echo "hello world" >> my_file.txt
echo 'text here' >> filename
echo "hello world" >> my_file.txt