I am testing the bash behavior on login (terminal 1), but I got confused about its interaction with alias:
I opened with vim .bashrc and add this line :
alias ls='ls -l'
and save it with :x
then I used source .bashrc to simulate a new login session and I found it in the aliases list
But I removed the alias from .bashrc and use source .bashrc again I saw that alias ls='ls -l' was still available. On the other hand, opening new shell terminal (terminal 2) the problem was solved.
Question: Why alias ls='ls -l' was not removed on the first terminal ?