exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 100 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 100
Topic #: 1
[All LFCS Questions]

Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

  • A. dirname
  • B. which
  • C. basename
  • D. query
  • E. whereis
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
Strib
6 months, 3 weeks ago
Selected Answer: E
The correct answer is E. The whereis command can be used to locate programs and their corresponding man pages and configuration files. The whereis command is a useful utility for finding the binary executable, source code, and manual pages related to a specific program. It searches the standard binary directories (/bin, /sbin, /usr/bin, etc.) and other directories specified in the PATH environment variable to locate the program and related files. By running whereis followed by the name of a program, you can quickly determine the location of its binary executable, source code files, and manual pages.
upvoted 1 times
Strib
6 months, 3 weeks ago
the other options for clarification: A. dirname: The dirname command extracts the directory component from a file path. It is not used for locating programs or their related files. B. which: The which command is used to locate the binary executable of a command within directories listed in the PATH environment variable. It does not provide information about man pages or configuration files. C. basename: The basename command extracts the file name component from a file path. It is not used for locating programs or their related files. D. query: There is no standard command called query in most Linux distributions.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago