encyclopegia.org

Shell builtin

In computing, a shell builtin is a command or a function, exposed by a shell, that is implemented in the shell itself, instead of an external program which the shell would load and execute. A shell builtin starts faster than an external program because there is no program loading overhead. However, its implementation code is in the shell program, and thus modifying it requires modifying the shell. Therefore, a shell builtin is usually only used for simple, almost trivial, commands, such as text output. Some commands must be implemented as builtins due to the nature of the operating system. Notably, the cd command, which changes the working directory of the shell is often a builtin since a program runs in a separate process and working directory is specific to each process. Running cd as an external program would not affect the working directory of the shell that loaded it.

In computing, a shell builtin is a command or a function, exposed by a shell, that is implemented in the shell itself, instead of an external program which the shell would load and execute. A shell builtin starts faster than an external program because there is no program loading overhead. However, its implementation code is in the shell program, and thus modifying it requires modifying the shell. Therefore, a shell builtin is usually only used for simple, almost trivial, commands, such as text output. Some commands must be implemented as builtins due to the nature of the operating system. Notably, the cd command, which changes the working directory of the shell is often a builtin since a program runs in a separate process and working directory is specific to each process. Running cd as an external program would not affect the working directory of the shell that loaded it. ==See also== ==References== ==External links== List of special shell builtin commands List of MS-DOS internal commands

References

No reference rows published for this article.

Cite this article

MLA

"Shell builtin." encyclopegia.org, 2026, https://encyclopegia.org/wiki/shell-builtin. Accessed 24 November 2026.

Chicago

"Shell builtin." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/shell-builtin.

APA

encyclopegia.org. (2026). Shell builtin. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/shell-builtin

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Shell Haven

stub · references available

Ghost in the Shell

stub · references available

Northern & Shell

stub · references available

Shell Rock Township

stub · references available

Bourne shell

stub · references available

shell-shaped noodle

stub · references available

shell script

stub · references available

Shell Museum Heringsdorf

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1336335512 · 0.5 · snapshot enwiki-001336335512

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.