Tag: type

  • 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