how to configure PATH variable?

my problem is to configure the PATH variable on rc.d files.
I've tried to do it in the file "rc.local" (Slackware), but every time I boot the system, don't work. What's wrong? I'm tired of setting this variable on prompt.

Who is Participating?
ahoffmannConnect With a Mentor Commented:
Assuming that you need your PATH variable after you login with a specific user:

If your user uses bash, ksh or sh change ~/.profile like:

   export PATH=${PATH}:your/new/path/here

or if it is csh or tcsh, change ~/.cshrc like:

   setenv PATH "${PATH}:your/new/path/here"
andraschko070599Author Commented:
Adjusted points to 200
rc.local should be right. Did you set it for the correct runlevel. Pls post your rc.local file. Any errors?
andraschko070599Author Commented:
Thank you very much for the answer, it was quick and wise. Your tip works fine, but all HOW-TOs I know sign to do it on "rc.local" file, my confusion was about that.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.