Hi,
I am using Redhat 4AS and I'm planning to change the default directory (/home/psuser) upon login to /opt/directory/.
This is my .bash_profile entry:
Code:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
. ~/test
This is the entry of my test file:
Code:
cd /opt/some directory/
However when i logged in using psuser account, im still directed to /home/psuser. Can anyone know what am i doing wrong?
Thanks!