exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 96 discussion

Actual exam question from CompTIA's XK0-005
Question #: 96
Topic #: 1
[All XK0-005 Questions]

An administrator installed an application from source into /opt/operations1/ and has received numerous reports that users are not able to access the application without having to use the full path /opt/operations1/bin/*. Which of the following commands should be used to resolve this issue?

  • A. echo 'export PATH=$PATH:/opt/operations1/bin' >> /etc/profile
  • B. echo 'export PATH=/opt/operations1/bin' >> /etc/profile
  • C. echo 'export PATH=$PATH/opt/operations1/bin' >> /etc/profile
  • D. echo 'export $PATH:/opt/operations1/bin' >> /etc/profile
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
linux_admin
8 months, 3 weeks ago
Selected Answer: A
This command adds the path /opt/operations1/bin to the $PATH environment variable in the /etc/profile file. This will allow users to access the application without having to use the full path /opt/operations1/bin/*.
upvoted 4 times
...
Ckl22
10 months, 2 weeks ago
Selected Answer: A
A looks like the best answer here. It would be better to put the directory before $PATH, so that way the directory is searched before the rest of the pathing options in $PATH.
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