12
4
I have give alias names in .bashrc file like below. But the alias names are not working. why?
alias c='clear'
alias l='ls -lt'
alias h='history'
alias d='ls -lt |grep "^d"'
export ORACLE_HOME=/ora11gr2/app/oracle/product/11.2.0/db2
export ORACLE_LIB=/ora11gr2/app/oracle/product/11.2.0/db2/lib
export PATH=$ORACLE_HOME/bin:/usr/vac/bin:/usr/vacpp/bin:.
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:.
2Are you saying you get the environement variables but not the aliases, or you get none of it? – Paul – 2012-06-27T04:54:07.843
1May be a separate issue, but you wipe out your PATH. You should reference your old PATH in any setting, e.g.
export PATH=$PATH:$ORACLE_HOME/bin:/usr/vac/bin:/usr/vacpp/bin:.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
– Rich Homolka – 2012-06-27T15:38:09.813