CompTIA XK0-006 - CompTIA Linux+ Exam
Page: 3 / 31
Total 155 questions
Question #11 (Topic: Exam A)
A systems administrator wants to prevent the current contents of a file from being overwritten and wants to allow new additions at the end of the file. Which of the following commands should the administrator use?
A. setenforce file
B. setfacl -m m::t file
C. chattr +a file
D. chmod +t file
Answer: C
Question #12 (Topic: Exam A)
A systems administrator is configuring new Linux systems and needs to enable passwordless authentication between two of the servers. Which of the following commands should the administrator use?
A. ssh-keygen -t rsa $$ ssh-copy-id -i ~/.ssh/id_rsa.pub john@server2
B. ssh-keyscan -t rsa $$ ssh-copy-id john@server2 -i ~/.ssh/key
C. ssh-agent -i rsa $$ ssh-copy-id ~/.ssh/key john@server2
D. ssh-add -t rsa $$ scp -rp ~/.ssh john@server2
Answer: A
Question #13 (Topic: Exam A)
An administrator updates the network configuration on a server but wants to ensure the change will not cause an outage if something goes wrong. Which of the following commands allows the administrator to accomplish this goal?
A. netplan try
B. netplan rebind
C. netplan ip
D. netplan apply
Answer: A
Question #14 (Topic: Exam A)
Which of the following best describes journald?
A. A system service that collects and stores logging data
B. A feature that creates crash dumps in case of kernel failure
C. A service responsible for keeping the filesystem journal
D. A service responsible for writing audit records to a disk
Answer: A
Question #15 (Topic: Exam A)
A Linux administrator wants to add a user to the Docker group without changing their primary group. Which of the following commands should the administrator use to complete this task?
A. sudo groupmod docker user
B. sudo usermod -g docker user
C. sudo usermod -aG docker user
D. sudo groupmod -G docker user
Answer: C