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
This is a collaboratively edited question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
Got a question about the site itself? meta is the place to talk about things like what questions are appropriate, what tags we should use, etc.
about » faq » meta »
tagged
asked
1 year ago
viewed
82 times
active