February 2001
Beginner to intermediate
448 pages
9h 2m
English
Official Description
Displays the names of commands built into the shell itself. Allows C language function extensions to the shell.
Syntax
builtin [-ds] [-f file] [path/basename]
Options
-f file names a shared library file containing built-in functions.
-d deletes a built-in.
-s displays special built-ins.
Oddities
Available in ksh93 and beyond.
Example
$ builtin | wc –l # Count of built-in commands
61
$
$ builtin -s | wc –l # Count of special built-in commands
19
$
$ builtin | head –5 # Lists several built-ins
:
.
[
alarm
alias
$
$ builtin -s | head –5 # Lists several special built-ins
:
.
alias
break
continue
$
Read now
Unlock full access