exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 204 discussion

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

Ann, a security administrator, is performing home directory audits on a Linux server. Ann issues the su Joe command and then issues the ls command. The output displays files that reside in Ann's home directory instead of Joe's. Which of the following represents the command Ann should have issued in order to list Joe's files?

  • A. su - Joe
  • B. sudo Joe
  • C. visudo Joe
  • D. pkexec Joe
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
Kashim
8 months, 4 weeks ago
Selected Answer: A
To switch to Joe's account and properly load Joe's environment, including changing the working directory to Joe's home directory, Ann should use the following command: A. su - Joe Explanation: A. su - Joe: The - (or --login) option with su initiates a full login shell for Joe, which includes switching to Joe's home directory and loading Joe's environment variables. This is the correct command to use if Ann wants to start a session as Joe with Joe's environment.
upvoted 4 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