Contents
How do you append to a file in Linux?
You need to use the >> to append text to end of file. It is also useful to redirect and append/add line to end of file on Linux or Unix-like system.
How do I append to a file?
To append some text to the end of a file, you can use echo and redirect the output to be appended to a file. If the file we specify doesn’t already exist, it will be created for us. You can also redirect command output to a file. In this example, we append the current date to a file.