Append an Entry to a File
· Files & disks
There are many situations in which you may want to append an entry to a file. Here are two ways of doing it.
#echo "138.123.34.12 myhost" >> /etc/hosts
#cat >> /etc/hosts
"138.123.34.12 myhost" (hit enter)
then execute a control d