builtin command in Linux with examples
builtin command is used to run a shell builtin, passing it arguments(args), and also to get the exit status. The main use of this command is to define a shell function having the same name as the shell builtin by keeping the functionality of the builtin within the function.
Syntax:
builtin [shell-builtin [arg ..]]
Example: Here, we are creating a function to replace the ‘cd’ command. When you will use cd() function it will change the directory to the desktop directly.

builtin –help Command: It displays help information.

Recommended Posts:
- last command in Linux with Examples
- cut command in Linux with examples
- env command in Linux with Examples
- cp command in Linux with examples
- dir command in Linux with examples
- tty command in Linux with examples
- ip command in Linux with examples
- rev command in Linux with Examples
- cmp Command in Linux with examples
- gs command in Linux with Examples
- ed command in Linux with examples
- let command in Linux with Examples
- atq command in linux with examples
- for command in Linux with Examples
- df Command in Linux with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



