how to add a line at the end of a file in linux code example Example: add a line at the end of a file linux echo 'text here' >> filename