I compiled lftp from source and it installed to /usr/local/bin. Problem is, that is not in my path. So when i typr lftp from command line it says command not found. If i type /usr/local/bin/lftp, it of course works fine. How can i add that to my path so i don't have to type the full path each time?

And to answer why i compiled myself, because fedora compiles lftp against openssl and not gnutls, which cause problems.

to apply changes instantly
from the command line enter:
PATH=$PATH:/usr/local/bin

not 100% accurate. if you want this change to apply for all users it would be better to modify /etc/profile rather than each user's .bash_profile. you should add the following line somewhere before the EXPORT line ..

Code:

pathmunge /usr/local/bin

additionally, you should export it so that its available in scripts and subshells. in the profile it's already exported but on the command line you should do..

Actually, it was 100% accurate. I don't recall him asking how to do it for all users. Plus, it would be better to do it for only the users who need it. Plus, does it not work? Choose your words wisely.

Take it easy folks. It could have probably been phrased better, and probably wasn't meant in any sort of mean way. We don't know if the OP wanted a system wide change or just for one user, so we're all guessing. Regardless, no doubt the OP is appreciative of both answers because regardless of the original purpose, now they have the knowledge to make it system wide or limit it to one user.

Additionally, the OP, or anyone who comes across this thread in the future, will realize that there's a way to make it system wide AND a way to limit it to one user.

So... in my very humble opinion, it's simply a matter of the two of you saving each other a little typing.