Computing.Net > Forums > Linux > add a directory to the PATH

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

add a directory to the PATH

Reply to Message Icon

Name: greg
Date: July 3, 2003 at 09:09:47 Pacific
OS: Linux
CPU/Ram: not sure
Comment:

Hi, I need to add a directory to the existing linux/unix path but I need it to still be there when the server is rebooted. I only know how to do it temporarily but once the server is rebooted, the path is restored.

His is how I currently do it temporarily:
PATH=$PATH\:/home/admin/HubzServer/jre/bin ; export PATH

Any help will be greatly appreciated.
email me at: greg@blk69.com
greg.



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: July 3, 2003 at 09:21:57 Pacific
Reply:

Add it to your /etc/profile for all users or ~/.bash_profile just for you.

You should be able to find a PATH="$PATH:/blah/blah/blah" in there somewhere, just add :/home/admin/HubzServer/jre/bin to the end.

Just noticed the path you want to add, probably want to add it to your /home/admin/.bash_profile


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: add a directory to the PATH

Reboot- www.computing.net/answers/linux/reboot/12082.html

add a partition to the system www.computing.net/answers/linux/add-a-partition-to-the-system/25844.html

Command to locate a directory www.computing.net/answers/linux/command-to-locate-a-directory/11114.html