builtin
A command implemented inside the shell itself rather than as a separate program on disk, such as cd, read or export.
In more detail
Some commands must be builtins because they change the shell: cd changes its current directory, and a separate program could only change its own. Builtins also start faster because no new process is created. Use help name to read about a builtin and type name to see whether a name is a builtin, a keyword, an alias, a function or a file.
Related terms
- reserved word — A word such as if, then, for, do, done, case or function that the shell treats as grammar rather than as a command name.
- type builtin — A bash builtin that tells you what a name would run: an alias, a keyword, a function, a builtin or a file on disk.
- help builtin — A bash builtin that prints the documentation for other builtins, such as help cd or help read.
- shell — The program that reads the commands you type, runs them and shows the results; sh and bash are common ones.
Taught in
- What A Shell Is, And What Bash Is — Bash Scripting & Command Line Automation
- Help, History, Completion And Aliases — Bash Scripting & Command Line Automation
- The Unquoted Variable: Splitting And Globbing — Bash Scripting & Command Line Automation
- The Field Separator, And Reading Lines Safely — Bash Scripting & Command Line Automation
- Conditionals: test, Brackets, Double Brackets, case — Bash Scripting & Command Line Automation
- Script Input And Output: read, Heredocs, printf — Bash Scripting & Command Line Automation
- Functions, local And declare — Bash Scripting & Command Line Automation
- Arguments: Dollar One, Dollar At, shift — Bash Scripting & Command Line Automation
- Option Parsing With getopts — Bash Scripting & Command Line Automation
- trap, Cleanup And Temporary Files — Bash Scripting & Command Line Automation
- Processes, Jobs And Signals — Bash Scripting & Command Line Automation
- Permissions And Ownership — Bash Scripting & Command Line Automation
- Forty Servers By Teatime: Ansible Playbooks, Inventories And Puppet Manifests — CompTIA Linux+ (XK0-006) Exam Prep