Checking and disabling shell internal commands

Bash provides a few builtin commands to change the sequence of command-line processing. We can use these builtin commands to change the default behaviour of command-line processing.

  • The builtin command will disable aliases and functions for the command that follows the command. The shell will search for the external command and the builtin command will search for the command passed as an argument, as follows:
    $ command ls  
  • This will facilitate the ignoring of aliases and functions and the external ls command will execute.
  • The builtin command will work as follows:
    $ builtin BUILT-IN  
  • This will ignore aliases and functions from the shell environment and only builtin commands and external ...

Get Learning Linux Shell Scripting - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.