0

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.

vi ./bashrc

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

marked as duplicate by Gilles bash Sep 18 '14 at 20:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • have a look at .profile /etc/profile – Archemar Sep 18 '14 at 8:18
  • i have a different entries for /etc/profile its a script. – dimas Sep 18 '14 at 8:29
  • What's wrong with the solution you got? Anything else will just modify the environment for the current shell, it won't be permanent. – Barmar Sep 18 '14 at 18:24