Saturday, June 23, 2007

Java, bashrc

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PATH=/opt/jdk1.6.0_01/bin:$PATH
# User specific aliases and functions

============

In the case of root in Fedora 7
==============

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PATH=/opt/jdk1.6.0_01/bin:/sbin:$PATH

=========
To activate the changes you can just use the next command:
source .bashrc
Or logout and login.