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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.