The bash command supports “>>” operator which can be used to append command output to a file instead of overwriting it. The following example appends output of two commands in a file.

[neo@techpulp ~]# echo Hi, There > msg.txt
[neo@techpulp ~]# echo I am Neo >> msg.txt
[neo@techpulp ~]# cat msg.txt
Hi, There
I am Neo
[neo@techpulp ~]#