1. IMPORTANT - 11/13/2015: In light of a possible breach we have scrubbed all passwords. You will need to request a password reset through the site. Click here for more information.

Questions about modifying bash_profile values, export, etc.

Discussion in 'Command Line' started by sethbw, Apr 20, 2012.

  1. sethbw

    sethbw New Member

    Apr 20, 2012
    Likes Received:
    My end goal: be able to use jar command from any directory i choose.

    I am trying to follow instructions for unzipping a war using the jar command,

    mkdir -p /tmp/my_ear
    cd /tmp/my_ear
    jar -xvf $WEBCENTER_HOME/archive/applications/webcenter.ear
    mkdir war
    cd war
    jar -xvf ../spaces.war

    I have been googling all day how to update the ~/.bash_profile using export $PATH...

    Can someone please help walk me through the correct steps to do this? I am not sure if the path should point to the JRE, the JDK or both, but more importantly I just am new to modifying the .bash_profile. I have made a couple of my own aliases for jumping to commonly used directories, but that is about it so far!

    From what I have found, it looks like this will be the path I use when updating the bash_profile - how can I confirm?
    And finally this is how it is currently setup in my ~/.bash_profile:

    export PATH
    export PATH=/u01/app/oracle/product/fmw/Oracle_WT1/instances/instance1/bin/:$PATH


Share This Page