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.
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
...
...
Log in to ExamTopics
Sign in:
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.
Strib
6 months, 3 weeks agoStrib
6 months, 3 weeks ago