type

Official Description

Writes a description of command type.

Syntax

type name...
				

Options

None

Oddities

The type command must be aware of the contents of the current shell execution environment to work properly.

Example

$ type cat
cat is a shell builtin version of /bin/cat
$
$ type if
if is a keyword
$
$ type find
find is a tracked alias for /usr/bin/find
$
				

Get Korn Shell Programming by Example 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.