vi /root/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export JAVA_HOME=/usr/java/jdk1.6.0_16
PATH=$PATH:/usr/java/jdk1.6.0_16
export PATH
unset USERNAME
Set Java path for all user
vi /etc/.bash_profile
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment