How do I change the $PATH to what I want permantly
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I change the $PATH to what I want permantly
I got the adobe plugin for mozilla 1.4.1 I have fedora core release 1 and it says I must have acroread in my path. the path is /usr/local/Acrobat-5/bin, I used the PATH="$PATH /usr/local/Acrobat-5/bin" at the command line echoed the $PATH and it was there. I rebooted and done a $PATH echo and it werent there. I used the symlink method instead and I can read PDF documents happily, but I would still like to know how I can change the $PATH permantly in case I may have to in the future
Hi, just following up from this post. When I opened my bashrc to add the line, it said:
# PLEASE DO NOT CHANGE /etc/bash.bashrc There are chances that your changes
# will be lost during system upgrades. Instead use /etc/bash.bashrc.local
# for your local settings, favourite global aliases, VISUAL and EDITOR
I couldn't find the .local file. Is this something I have to create? If so, do I just copy the original bashrc, and how do I get the system to look for this .local file instead of the original?
But that will edit the profile. As the script says in my post before, upgrades could affect the profile so don't change that, instead change the profile.local.
I assume this means, upon upgrades, your profile could change so instead put your paths in a local version of your profile. I couldn't find this local version and was wondering how do I find it/set it up?
You can create it...it's just a text file.
Another option is copy /etc/bashrc(or bash_profile) to $HOME/.bashrc(or .bash_profile) and edit it to your pleasure. This leaves the system-wide settings untouched, and any upgrades won't affect your personal settings. I prefer doing this because 1) I can't screw up too severely by messing with system-wide settings, and 2) every user of the system can have his own choice of setting which can be easily backed up and transferred to other systems.
But that will edit the profile. As the script says in my post before, upgrades could affect the profile so don't change that, instead change the profile.local.
I assume this means, upon upgrades, your profile could change so instead put your paths in a local version of your profile. I couldn't find this local version and was wondering how do I find it/set it up?
Thanks.
just make a back up of the file/files!!!
if something odd happens during an upgrade........just restore it..............easy
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.