Linux_FoundationLinux_Foundation
LFCS · Question #665
LFCS Question #665: Real Exam Question with Answer & Explanation
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
Explanation
The type command is used to determine how a command name will be interpreted by the shell.
Common mistakes.
- A.
whereis not a standard shell command for displaying command definitions in typical Linux/Unix environments;whichorwhereisare used to locate executables, buttypeprovides the shell's interpretation. - B. The
statcommand displays detailed information about file or filesystem status (e.g., size, permissions, ownership, timestamps), but not the shell's interpretation of a command. - D.
caseis a shell control flow construct used for conditional execution, not a command to query command definitions.
Concept tested. Shell command introspection
Reference. https://linux.die.net/man/1/type
Topics
#type command#command identification#shell builtins
Community Discussion
No community discussion yet for this question.