请输入您要查询的百科知识:

 

词条 Shell builtin
释义

  1. Examples

  2. See also

  3. References

  4. External links

{{Refimprove|date=July 2016}}{{notability|date=November 2016}}

In computing, a shell builtin is a command or a function, called from a shell, that is executed directly in the shell itself, instead of an external executable program which the shell would load and execute.[1]

Shell builtins work significantly faster than external programs, because there is no program loading overhead. However, their code is inherently present in the shell, and thus modifying or updating them requires modifications to the shell. Therefore, shell builtins are usually used for simple, almost trivial, functions, such as text output.

Because of the nature of some operating systems, some functions of the systems must necessarily be implemented as shell builtins. The most notable example is the cd command, which changes the working directory of the shell. Since each executable program runs in a separate process, and working directories are specific to each process, loading cd as an external program would not affect the working directory of the shell that loaded it.

Examples

A widely used shell-builtin is the logout function, which terminates the session. This function has different names depending on the shell.

See also

  • Internal DOS command

References

1. ^POSIX standard: Shell Commands

External links

  • List of special shell builtin commands
  • List of MS-DOS internal commands
{{DEFAULTSORT:Shell Builtin}}{{Operating-system-stub}}

1 : Command shells

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/23 0:42:34