Free CompTIA XK0-005 Exam Questions (page: 18)

A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task?

  1. visudo -c
  2. test -f /etc/sudoers
  3. sudo vi check
  4. cat /etc/sudoers | tee test

Answer(s): A



A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?

  1. scp ~/.ssh/id_rsa user@server:~/
  2. rsync ~ /.ssh/ user@server:~/
  3. ssh-add user server
  4. ssh-copy-id user@server

Answer(s): D



A Linux administrator created a new file system. Which of the following files must be updated to ensure the filesystem mounts at boot time?

  1. /etc/sysctl
  2. /etc/filesystems
  3. /etc/fstab
  4. /etc/nfsmount.conf

Answer(s): C



A Linux administrator is troubleshooting a memory-related issue. Based on the output of the commands:



Which of the following commands would address the issue?

  1. top -p 8321
  2. kill -9 8321
  3. renice -10 8321
  4. free 8321

Answer(s): B



A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked with revealing the system to a compliant state. Which of the following commands will list and remove the correspondent packages?

  1. dnf list and dnf remove last
  2. dnf remove and dnf check
  3. dnf info and dnf upgrade
  4. dnf history and dnf history undo last

Answer(s): D



Viewing page 18 of 97



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

XK0-005 Exam Discussions & Posts