CompTIA Linux+ Certification - XK0-004 Exam Practice Test
A remote server reverts to the incorrect time when it is restarted. Which of the following will save the correct time to the BIOS clock once the time and date have been set on the server?
Correct Answer: D
A file server is sharing a directory called /share between team members inside a company. The fileshare needs to be moved from serverA to /newshare located on serverB with all permissions and attributes preserved. Which of the following commands would BEST achieve this task?
Correct Answer: B
An issue was discovered on a testing branch of a Git repository. A file was inadvertently modified and needs to be reverted to the master branch version. Which of the following is the BEST option to resolve the issue?
Correct Answer: C
An administrator is installing a new kernel but is getting an error indicating the filesystem is out of space. A disk usage check shows / has plenty of space.
Which of the following BEST represents where the administrator should check next?
Which of the following BEST represents where the administrator should check next?
Correct Answer: C
A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago.
Which of the following commands will achieve this task?
Which of the following commands will achieve this task?
Correct Answer: C
A Linux administrator opens a connection to a jump server to access the internal database servers. The desktop's IP is 10.11.123, and the jump server's IP address is 10.2.3.11. When the session is idle for a certain amount of time, the connection is interrupted by the firewall. Which of the is the BEST way to avoid this issue?
A)

B)

C)

D)

A)

B)

C)

D)

Correct Answer: B
An administrator is utilizing an automation engine than uses SSH to run commands on remote systems. Which of the fctowng does this describe?
Correct Answer: B
A Linux administrator attempts to install the package newprogram.x86_64.rpm using a package manager.
The administrator receives a warning indicating the command that was run was using a deprecated package manager. Which of the following commands should the administrator use to avoid the warning and install the newprogram.x86_64.rpm program?
The administrator receives a warning indicating the command that was run was using a deprecated package manager. Which of the following commands should the administrator use to avoid the warning and install the newprogram.x86_64.rpm program?
Correct Answer: B
A Linux administrator needs to give user2 full permissions to the /opt/share/test directory. Permission for user1 and group2 must remain the same. The administrator runs the Is-Id /opt/share/test/ command and receives the output below:

Which of the following command is the BEST to perform this task?

Which of the following command is the BEST to perform this task?
Correct Answer: A
When requesting SSH access to a remote system, a user accidentally emailed the id_rsa key to the administrator. Which of the following should the user do NEXT?
Correct Answer: B
A Linux administrator needs the "tech" account to have the option to run elevated commands as root.
Which of the following commands would BEST meet this goal?
Which of the following commands would BEST meet this goal?
Correct Answer: D
A systems administrator needs to see if a mail server is listening on port 25. Which of the following is the BEST command for the administrator to run on the mail server to see if the port is listening for connections?
Correct Answer: B
A Linux administrator needs to remove a USB drive from a system. The unmount command fails, stating the device is busy. Which of the following commands will show the reason for this error?
Correct Answer: A