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?
ls
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.
alias
alias ls
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
3 years ago
viewed
121 times
active