[SOLVED] Questions about modifying bash_profile values, export, etc.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Questions about modifying bash_profile values, export, etc.
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
jar -xvf $WEBCENTER_HOME/archive/applications/webcenter.ear
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?
would it be a file literally called "jar" in that directory?
Yes. It looks like from your "ls" that there is no jar in that directory, which is why it can't find it. I've never used any "jar" command before, but I have run into java .jar files before. Usually in those cases I run them with "java -jar file.jar". I don't know if this has anything to do with what you're trying though.
Last edited by suicidaleggroll; 04-20-2012 at 03:06 PM.