Friday, April 17, 2009

Set environment variables in Bourne shell (sh)

To set an environment variable use this

PATH=$PATH:/usr/local/bin (just an example)
export PATH

This will export the change to the environment variable.

To make persistent changes in Solaris 10 add these lines to /etc/profile file.

No comments: