This question already has an answer here:
I wanted to edit the contents of environment when entering this "ENV" in terminal. I googled this but so far none of the solution offered works in my end. The closes solution that i got was to edit bashrc by using the command below.
This is the result of env command. I just wanted to modify JAVA_HOME and PATH. Any help on this? Thanks
domain1$ env MANPATH=:/opt/CollabNet_Subversion/share/man SHELL=/bin/bash TERM=xterm OLDPWD=/usr SSH_TTY=/dev/pts/2 LOCPATH=:/opt/CollabNet_Subversion/share/locale ANT_HOME=/usr/ant/apache-ant JAVA_OPTS=-Xms512m -Xmx1024m USER=root PATH=/usr/sbin:/usr/bin:/usr/java/bin:/usr/ant/apache-ant/bin:/u01/oracle/middleware/wlserver_10.3/common/bin:/opt/CollabNet_Subversion/bin:/usr/jdk/instances/jdk1.7.0_67/bin JAVA_HOME=/usr/java SVN_HOME=/opt/CollabNet_Subversion _=/usr/bin/env