Article ID: 4480, created on Mar 24, 2008, last review on May 9, 2014

  • Applies to:
  • Sphera

Symptoms

How to change $PATH value in a VDS

Resolution

The best way for VDS owner to add something to the $PATH value, or any
other variable and make it permanent is to create a .profile file in / of the VDS.

For example, in order to add /www/bin/ to the default path, create a file called .profile (notice the dot at the begining of the filename) and write the following line in it:  PATH="$PATH;/www/bin;"

5f478287f7e74fe9b07217d8131cd741 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF