$type -a locate
locate is /usr/bin/locate
$type -a ls
ls is aliased to `ls --color=auto'
ls is /bin/ls
$type -t ls
alias
$type -t locate
file
$type -t /dev/urandom
$type -t /dev/sda1
$type -t urandom
$type -t sda1
$type -t type
builtin
$type -t shuf
file
$type -t bash
file
$type -t proc
$type -t debugfs
$sudo type -t debugfs
[sudo] password for jeffrin: 
sudo: type: command not found
$sudo type -t debugfs
sudo: type: command not found
$