What is .bashrc ?
.bashrc contains the scripts that are executed when ‘BASH’ shell ( Bourne Again Shell ) is launched. It basically contains the settings that must be enabled for a bash shell when it is launched. The ‘.bashrc’ exist at two levels ie one at the root level ( global one ) and another one at the user level ( ie shell settings specific for that particular user )
Global bashrc location : /etc/
User Specifc location : /home/username/
Ideally all your environment variables like JAVA_HOME should be set inside your .bashrc.
eg :#Setting Java Home and Path Variable export JAVA_HOME=/home/mindtree/java/jdk1.6.0_22 export PATH=$JAVA_HOME/bin:$PATH export ODE_HOME=/home/mindtree/apache-ode-jbi-2.0-beta2 export RAPIDAPPSERVER_HOME=/home/mindtree/RCSBuildXMLFiles
Once you change the contents of .bashrc. You need to execute the command
so that the changes take effect. If this doesn’t work, try starting a new terminal or a new tab within the existing terminal.
More on linux shell scripting @ http://www.arachnoid.com/linux/shell_programming.html
The Nonsense Blogger 🙂 🙂