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.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago