Bird
0
0

What will be the output of the command whereis bash on a typical Linux system?

medium📝 Command Output Q13 of 15
Linux CLI - Searching and Finding
What will be the output of the command whereis bash on a typical Linux system?
Abash: /bin/bash /usr/share/man/man1/bash.1.gz
Bbash: command not found
C/usr/bin/bash
D/bin/bash
Step-by-Step Solution
Solution:
  1. Step 1: Understand whereis output format

    whereis shows multiple locations: the binary executable path, source files if any, and manual page locations.
  2. Step 2: Analyze typical output for bash

    On most systems, whereis bash returns the binary path like /bin/bash and the man page location like /usr/share/man/man1/bash.1.gz.
  3. Final Answer:

    bash: /bin/bash /usr/share/man/man1/bash.1.gz -> Option A
  4. Quick Check:

    whereis = binary + man files [OK]
Quick Trick: whereis shows binary and man page locations [OK]
Common Mistakes:
  • Expecting only one path from whereis
  • Confusing whereis output with which output
  • Thinking whereis returns error if command exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes