builtin command in Linux with examples Last Updated : 14 Oct, 2024 Comments Improve Suggest changes Like Article Like Report The builtin command in shell scripting is used to execute a shell builtin, passing it arguments, and also retrieving its exit status. Its primary use is to ensure that you can call the original functionality of a builtin command even when a function with the same name is defined. Syntaxbuiltin [shell-builtin [arg ..]]where,shell-builtin: This represents the name of the original shell-builtin command you want to invoke.arg ...: Any arguments that you want to pass to the builtin command.Linux builtin command Example Here’s a simple example of using the builtin command:Scenario: You want to create a function named cd, but still want to use the original cd functionality within that function.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. In this case, every time you use cd, it will move to the Desktop directory, but the functionality of the original cd command is retained by using builtin.Key Option Used with the builtin Commandbuiltin --help CommandThe builtin --help command displays help information for the builtin command.This will output detailed help information regarding the builtin command, listing available builtins and their functionality.ConclusionThe builtin command is particularly useful when you want to override a shell builtin (e.g., cd, echo, test) with a custom function while still being able to access the original builtin behavior. It ensures that the core functionality remains intact within your custom shell functions. Comment More infoAdvertise with us Next Article builtin command in Linux with examples D DrRoot_ Follow Improve Article Tags : Technical Scripter Linux-Unix Technical Scripter 2018 linux-command Linux-Shell-Commands +1 More Similar Reads autoheader command in Linux with Examples autoheader command in Linux is used to create a template file of C â#defineâ or any other template header for configure to use. If the user will give autoheader an argument, it reads the standard input instead of reading configure.ac and also writes the header file to the standard output. This comma 3 min read automake command in Linux with Examples automake is a tool used for automatically generating Makefile.in files compliant with the set GNU Coding Standards. autoconf is required for the use of automake. automake manual can either be read on-line or downloaded in the PDF format. More formats are also offered for download or on-line reading. 1 min read autoreconf command in Linux with examples autoreconf is a Autotool which is used to create automatically buildable source code for Unix-like systems. Autotool is a common name for autoconf, automake, etc. These all together are termed as Autotools. Important Points: Provides Portability of source code packages by automatic buildable capabil 2 min read AWK command in Unix/Linux with examples Awk is a scripting language used for manipulating data and generating reports. The awk command programming language requires no compiling and allows the user to use variables, numeric functions, string functions, and logical operators. Awk is a utility that enables a programmer to write tiny but eff 8 min read banner command in Linux with examples The 'banner' command in Linux is a simple yet powerful utility used to display text in large ASCII characters on the terminal. This command can be particularly useful for creating prominent messages or headings within scripts and outputs.Syntax of the 'banner' Commandbanner textbanner 'Command' Exam 3 min read basename Command in Linux with examples The 'basename' command in Linux is a fundamental utility used in file manipulation and script writing. It simplifies file paths by stripping directory information and optional suffixes from file names. Here a detailed overview of the 'basename' command, including its syntax, options, and practical u 3 min read batch command in Linux with Examples batch command is used to read commands from standard input or a specified file and execute them when system load levels permit i.e. when the load average drops below 1.5. Syntax: batch It is important to note that batch does not accepts any parameters. Other Similar Commands: atq: Used to display th 1 min read bc command in Linux with examples bc command is used for command line calculator. It is similar to basic calculator by using which we can do basic mathematical calculations. Arithmetic operations are the most basic in any kind of programming language. Linux or Unix operating system provides the bc command and expr command for doing 11 min read bg command in Linux with Examples In Linux, the bg command is a useful tool that allows you to manage and move processes between the foreground and background. It's especially helpful when you want to multitask in the terminal by placing a process in the background, enabling you to continue using the terminal for other commands whil 3 min read biff command in Linux If you're working on a Unix or Linux terminal and want instant alerts for incoming emails then the biff command is just what you need. Originally built for early Unix systems, biff is a lightweight terminal-based mail notification tool that instantly pops up when new mail arrives. It gets its name f 3 min read Like