exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 94 discussion

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

A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users’ access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?

  • A. sudo useradd -e 2021-09-30 Project_user
  • B. sudo useradd -c 2021-09-30 Project_user
  • C. sudo modinfo -F 2021-09-30 Project_uses
  • D. sudo useradd -m -d 2021-09-30 Project_user
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
Alizadeh
8 months, 3 weeks ago
Selected Answer: A
The correct answer is A. sudo useradd -e 2021-09-30 Project_user.
upvoted 2 times
...
linux_admin
1 year, 2 months ago
Selected Answer: A
The correct command to accomplish the task is A: sudo useradd -e 2021-09-30 Project_user. The -e option is used to specify the expiration date for the user account.
upvoted 2 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