Which of the following commands shows the definition of a given shell command?
Which of the following commands shows the definition of a given shell command?
The 'type' command is used to display how the shell interprets a given command. It shows whether the command is a shell builtin, an alias, a function, or an external command, and its location if it is an external program.
The correct answer is C. type Explanation: type: This command is a shell builtin that displays how the shell would interpret a given command. It will tell you whether the command is a shell builtin, an alias, a function, or an external command, and where the command is located if it's an external program. where: This command finds and displays the paths to executable files associated with a given command name. It's helpful for finding the location of external programs. stat: This command displays detailed information about a file or filesystem object, including its permissions, ownership, timestamps, and size. case: This is a shell keyword used for conditional branching in shell scripts. It doesn't show command definitions.