Categories
Linux Tutorial Series

Linux Tutorial Series – 63 – The type command

Here is the video version, if you prefer it:

The type command displays the command’s type. (Shotts, 2019) Here is how it is used:

mislav@mislavovo-racunalo:~/Linux_folder$ type ls

ls is aliased to `ls --color=auto'

mislav@mislavovo-racunalo:~/Linux_folder$ type mv

mv is /usr/bin/mv

mislav@mislavovo-racunalo:~/Linux_folder$ type cp

cp is /usr/bin/cp

mislav@mislavovo-racunalo:~/Linux_folder$ type echo

echo is a shell builtin

mislav@mislavovo-racunalo:~/Linux_folder$ type cd

cd is a shell builtin

So ls is an alias, mv and cp are executables and echo and cd are shell builtins.

Hope you learned something new!

References

Shotts, W. (2019). The Linux Command Line, Fifth Internet Edition. Retrieved from http://linuxcommand.org/tlcl.php. Page 67

NewsletterUpdates on interesting things I am doing

Subscribe to my newsletter to keep abreast of the interesting things I'm doing. I will send you the newsletter only when there is something interesting. This means 0% spam, 100% interesting content.

Leave a Reply

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