Appending a single line of text to a file (echo command)
Use the echo command, used with the append redirection operator, to add a single line of text to a file.
For example, at the prompt, type the following:
echo Remember to back up mail files by end of week.>>notes
This adds the message Remember to back up mail files by
end of week.
to the end of the file notes.