CompTIA XK0-005 Real Exam Questions
The questions for XK0-005 were last updated at Dec 02,2024.
- Exam Code: XK0-005
- Exam Name: CompTIA Linux+ Exam
- Certification Provider: CompTIA
- Latest update: Dec 02,2024
A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job.
Given the following:
The Linux administrator attempts to start the timer service but receives the following error message:
Which of the following is MOST likely the reason the timer will not start?
- A . The checkdiskspace.timer unit should be enabled via systemct1.
- B . The timers.target should be reloaded to get the new configuration.
- C . The checkdiskspace.timer should be configured to allow manual starts.
- D . The checkdiskspace.timer should be started using the sudo command.
Based on an organization’s new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below.
To which of the following configuration files will the required changes need to be made?
- A . /etc/login.defs
- B . /etc/security/limits.conf
- C . /etc/default/useradd
- D . /etc/profile
A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding.
Which of the following commands is the correct way to accomplish this task?
- A . echo 1 > /proc/sys/net/ipv4/ipv_forward
- B . sysctl -w net.ipv4.ip_forward=1
- C . firewall-cmd –enable ipv4_forwarding
- D . systemct1 start ipv4_forwarding
A Linux administrator recently downloaded a software package that is currently in a compressed file.
Which of the following commands will extract the files?
- A . unzip -v
- B . bzip2 -z
- C . gzip
- D . funzip
A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory.
Which of the following commands should be used to accomplish this task?
- A . dd of=/dev/sda if=/tmp/sda.img
- B . dd if=/dev/sda of=/tmp/sda.img
- C . dd –if=/dev/sda –of=/tmp/sda.img
- D . dd –of=/dev/sda –if=/tmp/sda.img
A systems administrator is tasked with installing GRUB on the legacy MBR of the SATA hard drive.
Which of the following commands will help the administrator accomplish this task?
- A . grub-install /dev/hda
- B . grub-install /dev/sda
- C . grub-install /dev/sr0
- D . grub-install /dev/hd0,0
After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed.
Which of the following commands can be used to remove the package?
- A . dnf remove packagename
- B . apt-get remove packagename
- C . rpm -i packagename
- D . apt remove packagename
A cloud engineer is installing packages during VM provisioning.
Which of the following should the engineer use to accomplish this task?
- A . Cloud-init
- B . Bash
- C . Docker
- D . Sidecar
A systems administrator is investigating why one of the servers has stopped connecting to the internet.
Which of the following is causing the issue?
- A . The DNS address has been commented out in the configuration file.
- B . The search entry in the /etc/resolv.conf file is incorrect.
- C . Wired connection 1 is offline.
- D . No default route is defined.
A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission.
Which of the following commands will accomplish this task?
- A . chown -s 755 devops
- B . chown 1755 devops
- C . chmod -s 755 devops
- D . chmod 1755 devops