X

append to file in linux

How to append text to an existing file in Linux or Mac OS?

If you want to add a new line to an existing file from the terminal, use the following format: echo…