What is a shell builtin command?

0130

A shell builtin command is a command that is executed directly by the shell itself rather than by an external program. Builtin commands are part of the shell's functionality and can perform various tasks, such as changing directories, managing shell variables, or controlling the shell environment.

Examples of shell builtin commands include:

  • cd: Changes the current directory.
  • echo: Displays a line of text or variable values.
  • exit: Exits the shell.

Using builtin commands is generally faster than calling external commands because they do not require the shell to create a new process.

0 Comments

no data
Be the first to share your comment!