Quote:
Originally Posted by badguy
...because even after i do a
$ echo "export PKG_PATH=........" >> .profile
it still says No packages available in the PKG_PATH
|
Close.
~/.profile is only a text file. However, when logging into your account ~/.profile is read to initialize your shell environment. To have changes in ~/.profile be read by the running shell, you must
"source" the file,
ie.
$ . ~/.profile
As for
where to put such lines, convention is to be put lines like this at the very bottom of the file.
For more information, study the
ksh(1) manpage
(or whatever shell you are using...).
You might also benefit from going to a library & checking out an introductory text on Unix. Most beginning Unix texts cover issues like this.