TYPE COMMAND Indicate how a command name is interpreted

commandline session

$type ls
ls is aliased to `ls --color=auto'
$type cp
cp is /bin/cp
$type mv
mv is /bin/mv
$type happy
bash: type: happy: not found
$type gnome-session
gnome-session is /usr/bin/gnome-session
$type rm
rm is /bin/rm
$type rm -r
rm is /bin/rm
bash: type: -r: not found
$type 'rm -r'
bash: type: rm -r: not found
$type "rm -r "
bash: type: rm -r : not found
$type type
type is a shell builtin
$type bash
bash is /bin/bash
$type if
if is a shell keyword
$type $
bash: type: $: not found
$type fi
fi is a shell keyword
$type ./arduino-1.0.1+dfsg/
app/       build/     core/      debian/    hardware/  libraries/ .pc/
$type ./arduino-1.0.1+dfsg/
bash: type: ./arduino-1.0.1+dfsg/: not found
$

Screen shot modified to bring to the above form

Leave a comment

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