type tells you whether a name is an alias, a function, a builtin, or an external binary. The -a flag prints every definition in lookup order, so you see both the alias and the /usr/bin/ls it expands to. Use it before debugging why a command behaves unexpectedly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.