Basically, what the title says. I'm setting up a new version of LUA and HAProxy under my user account in Redhat, so the bin directory that contains it is /home/user1/testing/usr/local/bin. I've tried adding this to the PATH in my existing .profile, and .bash_profile files, but when I use which lua, I still get the older version under /usr/bin, in the root directory.
My path looks like this:
echo $PATH /usr/local/bin:/usr/bin:/home/user1/testing/usr/local/bin/
Is there any way for me to do this without overwriting all the other commands?