Free XK0-005 Exam Braindumps

Pass your CompTIA Linux+ Certification Exam exam with these free Questions and Answers

Page 2 of 36
QUESTION 1

As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:
Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.
INSTRUCTIONS
Fill the blanks to build a script that performs the actual compression of rotated log files.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
XK0-005 dumps exhibit
Solution:
XK0-005 dumps exhibit

Does this meet the goal?

  1. A. Yes
  2. B. No

Correct Answer: A

QUESTION 2

While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:
XK0-005 dumps exhibit
Which of the following commands should the administrator use to terminate all of the identified processes?

  1. A. pkill -9 -f "upload*.sh"
  2. B. kill -9 "upload*.sh"
  3. C. killall -9 -upload*.sh"
  4. D. skill -9 "upload*.sh"

Correct Answer: C

QUESTION 3

A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?

  1. A. The checkdiskspace.service is not running.
  2. B. The checkdiskspace.service needs to be enabled.
  3. C. The OnCalendar schedule is incorrect in the timer definition.
  4. D. The system-daemon services need to be reloaded.

Correct Answer: D

QUESTION 4

A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection.
Given the following output:
XK0-005 dumps exhibit
Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?

  1. A. restorecon -rv .ssh/authorized_key
  2. B. mv .ssh/authorized_key .ssh/authorized_keys
  3. C. systemctl restart sshd.service
  4. D. chmod 600 mv .ssh/authorized_key

Correct Answer: C

QUESTION 5

A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)

  1. A. wget
  2. B. ssh-keygen
  3. C. ssh-keyscan
  4. D. ssh-copy-id
  5. E. ftpd
  6. F. scp

Correct Answer: DF

Page 2 of 36

Post your Comments and Discuss CompTIA XK0-005 exam with other Community members: