How to Use which on an Aliased Command
type
type grep
grep is an alias for grep --color=auto
# Bash's type
type -P grep
/usr/bin/grep
# Zsh's type
type -p grep
grep is /usr/bin/grep
GNU which
which -a which
which: shell built-in command
/usr/bin/which
alias top10
top10='print -l ${(o)history%% *} | uniq -c | sort -nr | head -n 10'
alias | /usr/bin/which -i top10
top10='print -l ${(o)history%% *} | uniq -c | sort -nr | head -n 10'
/usr/bin/uniq
/usr/bin/sort
/usr/bin/head
