Name

builtin

Synopsis

    builtin command [ arguments ... ]

Bash version. Run the shell built-in command command with the given arguments. This allows you to bypass any functions that redefine a built-in command’s name. The command command is more portable.

Example

This function lets you do your own tasks when you change directory:

    cd () {
        builtin cd "$@"             Actually change directory
        pwd                         Report location
    }

Get Unix in a Nutshell, 4th 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.