Bird
0
0

You want to find all locations of the node executable if multiple versions are installed. Which command and option combination will help?

hard📝 Application Q8 of 15
Linux CLI - Searching and Finding
You want to find all locations of the node executable if multiple versions are installed. Which command and option combination will help?
Awhereis -a node
Bwhich -a node
Cwhich --all node
Dwhereis --all node
Step-by-Step Solution
Solution:
  1. Step 1: Identify command to list all executables in PATH

    which -a lists all matching executables in PATH.
  2. Step 2: Check other options

    whereis does not support -a or --all options; which --all is invalid syntax.
  3. Final Answer:

    which -a node -> Option B
  4. Quick Check:

    List all executables = which -a [OK]
Quick Trick: Use which -a to find all executable locations [OK]
Common Mistakes:
  • Using unsupported options with whereis
  • Using invalid which flags
  • Expecting whereis to list all executables

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes