What happens if I have this in my bashrc:
alias ls="ls -l"
alias ls="ls -a"
when I type ls they will both match. Is the last one kept or both?
The second alias command will redefine the alias for "ls". You can double check by running the alias command with no arguments, to see which aliases are defined.
6 years ago