Setting an alias in Redhat

Hi Everyone,

I am trying to set up alias the only way I now how, buy making entry into .bashrc file.

The entry I made is

alias ll='ls -lrt'

It is not working as I expect. When I enter "alias" at the command line I get the following.

[mymachine ~]$ alias
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'              /*This is not my entry */
alias ls='ls --color=tty'
alias obase='cd /u01/app/oracle'
alias odata='cd /u01/app/oracle/oradata/orcl'
alias oflash='cd /u01/app/oracle/flash_recovery_area'
alias orahm='cd /u01/app/oracle/product/10.2.0/db_1'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

Where is the above entry in bold comming from as it is not mine ?

Did you start a new shell after editing your .bashrc?

You can also try running your .bashrc by hand (sourced) and test again.

I figured what is going on.

In the .bashrc file I needed to place this statement before my aliases.
I previously had it after my aliases and my alias was overwritten.

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi