LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Pernmanently updating PATH (https://www.linuxquestions.org/questions/mandriva-30/pernmanently-updating-path-217982/)

Tamsco 08-15-2004 03:33 PM

Pernmanently updating PATH
 
Tryig to install the Java 1.4.2 SDK and need to update the PATH

export PATH=$PATH:/usr/local/j2sdk1.4.2_05/bin works in the shell, but when I asdd the command to .bashrc in my home directory or /etc/bashrc it won't work.

I have tried logging out and tried restarting, it just doesn't work.

I am new to mandrake having been a long time Fedora user (I still use Fedora on another box, I'm just trying this out) It works in fedora.

Btw, my shell IS bash

futhark 08-15-2004 04:01 PM

My shell is bash and I set my path in my ~/.bash_profile. Everytime I open a shell, this file is sourced and my path will be set. Edit for your needs.

PATH=$PATH:$HOME/bin
PATH=$PATH:/sbin/:/usr/local/bin/
PATH=$PATH:/usr/java/j2re1.4.2_01/bin
export PATH

jomen 08-15-2004 04:17 PM

try putting it in ~/.bash_profile or in the global file /etc/profile

Tamsco 08-15-2004 05:58 PM

Worked like a charm


All times are GMT -5. The time now is 11:57 PM.