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
By posting your answer, you agree to the
terms of service.
3 years ago