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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s