You can learn to use a text editor, such as vi(1), sed(1), ed(1), mg(1), or any of the innumerable X11 text editors.
Meanwhile, to append a line to an existing file, you can echo(1) some text and append it to the file with ">>", e.g.:
$ echo "export PKG_PATH=........" >> .profile
|