Skip to content
Related Articles

Related Articles

Improve Article
builtin command in Linux with examples
  • Last Updated : 15 May, 2019

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.

My Personal Notes arrow_drop_up
Recommended Articles
Page :