If you want to add a new line to an existing file from the terminal, use the following format: echo ‘hello world’ >> file.txt
If you want to add a new line to an existing file from the terminal, use the following format: echo ‘hello world’ >> file.txt