Can you give more examples of builtins?

091

Certainly! Here are more examples of shell builtins:

  1. bg: Resume a suspended job in the background.
  2. fg: Bring a background job to the foreground.
  3. jobs: List active jobs in the current shell session.
  4. kill: Terminate a job or process by its job ID or process ID.
  5. type: Display information about command type (builtin, alias, or external).
  6. umask: Set or display the default file creation permissions.
  7. source: Execute commands from a file in the current shell context.
  8. exit: Exit the shell or a script with a specified exit status.
  9. readarray: Read lines from standard input into an array variable (Bash specific).
  10. printf: Format and print data (similar to echo, but with more formatting options).

These builtins enhance the functionality of the shell and are commonly used in scripting and command-line operations.

0 Comments

no data
Be the first to share your comment!