type—Display a Command’s Type

Commandline session

$type
$type ls
ls is /bin/ls
$type Xorg
Xorg is /usr/bin/Xorg
$type  hey
bash: type: hey: not found
$type  ls -l
ls is /bin/ls
bash: type: -l: not found
$type  pwd
pwd is a shell builtin
$type  shopt
shopt is a shell builtin
$type  time
time is a shell keyword
$type  times
times is a shell builtin
$type  pstree
pstree is /usr/bin/pstree
$type  man
man is /usr/bin/man
$type  file
file is /usr/bin/file
$type  type
type is a shell builtin
$

Leave a comment

Your email address will not be published. Required fields are marked *