Name

type

Synopsis

    type program ...

Print a description of program, i.e., whether it is a shell built-in, a function, or an external command. type is built into the Bash and Korn shells. See Chapter 4 and also see which.

Example

Describe cd and ls:

    $ type cd ls        
                     From Bash
    cd is a shell builtin
    ls is hashed (/bin/ls)

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.