exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 49 discussion

Actual exam question from LPI's 101-500
Question #: 49
Topic #: 1
[All 101-500 Questions]

Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?

  • A. lsattr foo
  • B. apropos foo
  • C. locate foo
  • D. whatis foo
  • E. which foo
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
shyamite
Highly Voted 4 years, 4 months ago
A. lsattr foo -- lsattr: No such file or directory while trying to stat ls B. apropos foo - all man pages - apropos - search the manual page names and descriptions C. locate foo - locate file via updatedb refernce D. whatis foo - whatis - display one-line manual page descriptions E. which foo - show location lib -which - locate a command
upvoted 18 times
...
Ninymo
Most Recent 3 months, 3 weeks ago
Answer: E
upvoted 2 times
...
Tewodros89
10 months, 1 week ago
E which: A command that searches for the executable file associated with the given command in the directories listed in the PATH environment variable. foo: The command for which you want to determine the executable file's path.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago