Question 230
Before approving this basic Linux procedure, the team observes: A trainee runs a command name that behaves differently from the executable documented in a tutorial because a shell alias has changed its meaning. What ongoing quality or security safeguard is most appropriate?
Explanation
Correct Answer
This safeguard addresses type builtin identifies commands and aliases: Check command type when an interactive shell behaves differently from noninteractive scripts or published examples. The prevented failure mechanism is: Shell command names may resolve to aliases, functions, builtins or filesystem executables; a printed name alone does not identify the actual target. A control for an unrelated service cannot establish the required protection.
Incorrect Answers
Manual pages are divided into numbered sections, so the same term can refer to different kinds of interfaces. “Record manual section numbers when documenting commands that share names with functions or configuration file formats” would remedy that alternative situation, but it would not correct the present issue: shell command names may resolve to aliases, functions, builtins or filesystem executables; a printed name alone does not identify the actual target.
“Avoid typing passwords or tokens into interactive commands because shell history may retain sensitive parameters” is the supported response when bash can maintain an in-session command history, and persistent history behavior depends on shell configuration and session lifecycle. Here the decisive response is “Check command type when an interactive shell behaves differently from noninteractive scripts or published examples”, so that different intervention does not meet the stated requirement.
The shell searches PATH entries in order for commands that do not specify an explicit executable path. “Inspect PATH ordering before trusting command names on machines with local scripts and vendor-installed utilities” applies to that other condition. The reported evidence is a trainee runs a command name that behaves differently from the executable documented in a tutorial because a shell alias has changed its meaning; this alternative would address the wrong dependency.