Adding content to a file

You can use the “echo” command with the “>>” operator to add content to a file. For example, the following command adds the string “one more line” to the file “file.txt”:

echo “one more line” >> file.txt