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.
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
Please Login to comment...