In one command you want the location of the mount binary, of any source directory the system carries for it, and of its manual page. Which command reports all three?

LPIC-1 Exam 101-500, objective 104. Devices, Linux filesystems, filesystem hierarchy standard easy

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.

The options

Correct whereis mount

Correct. whereis looks for the name in the standard binary, source and manual directories it knows about, and prints every hit it finds under each of the three headings in one line of output.

Not correct which mount

Wrong. which reports only the first executable named mount found by walking the directories in PATH. It knows nothing about manual pages or sources.

Not correct type mount

Wrong. type is a shell builtin answering how the shell itself would resolve the word: alias, function, builtin, keyword, or a file in PATH.

Not correct locate mount

Wrong tool for the question. locate prints every indexed path containing the substring mount, which is thousands of unrelated lines.

Why

The three lookup commands answer three different questions. whereis consults standard system locations for binaries, sources and manual pages — a hard-coded list, plus the directories named by $PATH and $MANPATH — and answers all three questions at once. which searches PATH only and reports executables. type is a shell builtin, so it alone can tell you that a name is an alias, a function or a shell keyword rather than a file on disk, which is why it is the reliable answer to what will actually run.

Where this comes from

Cited
manual page whereis(1)

Practise this

Reading one question is not practice. The trainer will draw a short set from objective 104 and space the ones you get wrong.

Practise LPIC-1 Exam 101-500

More questions on this objective

All questions on Devices, Linux filesystems, filesystem hierarchy standard

Practise LPIC-1 Exam 101-500