What are examples of shell builtins?

0104

Here are some common examples of shell builtins:

  1. cd - Changes the current directory.
  2. echo - Displays a line of text or variable values.
  3. export - Sets environment variables.
  4. alias - Creates shortcuts for commands.
  5. unset - Removes variables or functions.
  6. set - Sets shell options or positional parameters.
  7. pwd - Prints the current working directory.
  8. history - Displays the command history.
  9. jobs - Lists active jobs in the current shell session.
  10. fg - Brings a background job to the foreground.

These commands are executed directly by the shell and do not require an external program to run.

0 Comments

no data
Be the first to share your comment!