Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 94 discussion

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

Which of the following tools can show the complete path of an executable file that the current shell would execute when starting a command without specifying its complete path? (Choose two.)

  • A. find
  • B. pwd
  • C. which
  • D. locate
  • E. type
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
salah112
2 months, 2 weeks ago
Selected Answer: CE
In situations where the question asks for tools that show the exact executable used by the shell, which and type are more appropriate answers because they consider the shell's environment and $PATH. So, while locate could technically find executables, which and type are still the better choices in this case.
upvoted 2 times
...
btomasz
1 year, 2 months ago
Selected Answer: CE
C and E is correct. locate would also show other Files and excecutables outside the $PATH directories. So it does not match the requirements of the question.
upvoted 2 times
...
Jack67
1 year, 5 months ago
Selected Answer: CD
C&E not D
upvoted 1 times
...
Amycert
1 year, 8 months ago
Selected Answer: CD
C and D. E is incorrect
upvoted 3 times
shurik04
1 year, 8 months ago
then justify your claim.
upvoted 1 times
...
...
shurik04
2 years ago
CE is correct
upvoted 4 times
...
chikuwan
2 years, 2 months ago
Selected Answer: CD
which and locate
upvoted 2 times
...
KiddyLitty
2 years, 6 months ago
locate command will show every possible items that contained *command* It has default file globbing that needs regex control during searching.
upvoted 1 times
...
rjlg2centos8
4 years ago
Also locate command can show the full path of a executable, but if it says two all right, the other options are more correct.
upvoted 1 times
ilputto
4 years ago
yes, but locate needs the updatedb.
upvoted 1 times
Quastor
3 years, 9 months ago
+ mlocate as it's not builtin hehe
upvoted 1 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 ...