XK0-005 Practice Test practice questions, page 17 of 19, with answer review and explanations.
Question 81
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?
visudo -c
test -f /etc/sudoers
sudo vi check
cat /etc/sudoers | tee test
Question 82
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?
scp ~/.ssh/id_rsa user@server:~/
rsync ~ /.ssh/ user@server:~/
ssh-add user server
ssh-copy-id user@server
Question 83
A Linux administrator created a new file system. Which of the following files must be updated to ensure the filesystem mounts at boot time?
/etc/sysctl
/etc/filesystems
/etc/fstab
/etc/nfsmount.conf
Question 84
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?
top -p 8321
kill -9 8321
renice -10 8321
free 8321
Question 85
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?