Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Aug 132011
 

How to add a directory into the PATH environment variable?

Answer:

To add a new directory into the PATH environment variable, you can use the following command.

# export PATH=$PATH:/opt/myprogram/bin

If you want to have this path being set automatically, then follow this article.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>