determine command type
type command ...
type indicates how each command is interpreted
by the shell. type identifies each command as a shell
built-in command, function, alias, or keyword. Where applicable,
type will display the pathname of the command.
type bg cp lp r foo might produce the following output:
bg is a shell builtin
cp is a tracked alias for /bin/cp
lp is /usr/bin/lp
r is an exported alias for fc -e -
foo is a function
type is implemented as a built-in command in the Korn
type is conformant with:
ISO/IEC DIS 99452:1992, Information technology Portable Operating System Interface (POSIX) Part 2: Shell and Utilities (IEEE Std 1003.21992);
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003