nerdexam
Linux_Foundation

LFCS · Question #665

Which of the following commands shows the definition of a given shell command?

The correct answer is C. type. The type command is used to determine how a command name will be interpreted by the shell.

Submitted by packet_pusher· Apr 18, 2026Essential Commands

Question

Which of the following commands shows the definition of a given shell command?

Options

  • Awhere
  • Bstat
  • Ctype
  • Dcase

How the community answered

(29 responses)
  • B
    3% (1)
  • C
    93% (27)
  • D
    3% (1)

Why each option

The `type` command is used to determine how a command name will be interpreted by the shell.

Awhere

`where` is not a standard shell command for displaying command definitions in typical Linux/Unix environments; `which` or `whereis` are used to locate executables, but `type` provides the shell's interpretation.

Bstat

The `stat` command displays detailed information about file or filesystem status (e.g., size, permissions, ownership, timestamps), but not the shell's interpretation of a command.

CtypeCorrect

The `type` command displays whether a given command is an alias, shell function, built-in command, or an external executable, and provides its path if it is an executable.

Dcase

`case` is a shell control flow construct used for conditional execution, not a command to query command definitions.

Concept tested: Shell command introspection

Source: https://linux.die.net/man/1/type

Topics

#type command#command identification#shell builtins

Community Discussion

No community discussion yet for this question.

Full LFCS Practice