Linux append text to end of file

Originally published at: https://www.cyberciti.biz/faq/linux-append-text-to-end-of-file/

I am new Linux user and sysadmin. How to add lines to end of file? How do I append text to end of file using the cli on Linux?