$PATH
Warren Togami
warren at togami.com
Mon Aug 27 20:19:41 PDT 2001
This was recently posted to the Red Hat Roswell mailing list. This should
work specifically to your Red Hat setup.
What do you plan on adding to $PATH? Please think about adding it to your
personal $PATH rather than the global $PATH. These directions below are for
adding to your global $PATH.
> This isnt really roswell related, but I am loosing my rag over this, I
> have spent 2 hours solid looking for help EVERYWHERE I know for info on
> adding any given directory to path. GLOBALY. permanently.
>
> All the documentation on it were written by people who assume you know
> what to do, but not where.. the best example of AOL like help I found
was:
>
> "3.1.4 How can I change the PATH?
> Typically, you don't have to change your PATH, but it very useful to
> understand what PATH"
>
> Eventually I found advice telling me to add :/whatwver/blah to the end
> of $PATH: in /etc/profile, unfortunalty redhat's version of this file is
> to me like trying to read brail..
>
> Please somone, I just want to add my java bin directory to my GLOBAL
> path, for all users... Before I give up and rub my face on a cheese
> grater =|
>
> Thanks..
>
> BTW, PATH=$PATH:/usr/java/jdk1.3.1/bin/
> export PATH
>
> did not work, it lasted untill I logged out, and only worked in the
> account I used it in (root)
Try adding a file in /etc/profile.d
every executable in that directory is sourced when a user logs in.
files that end in '.sh' are for bash. files that end in '.csh' are for
tcsh.
[chrismcc at wednesday profile.d]$ pwd
/etc/profile.d
[chrismcc at wednesday profile.d]$ cat java.sh
export JAVA_HOME=/opt/IBMJava2-13/jre
export PATH=${PATH}:/opt/IBMJava2-13/jre/bin
[chrismcc at wednesday profile.d]$ ls -l java.sh
-rwxr-xr-x 1 root root 38 Jul 9 12:37 java.sh
More information about the LUAU
mailing list