CompTIA XK0-005 CompTIA Linux+ Exam Online Training
CompTIA XK0-005 Online Training
The questions for XK0-005 were last updated at Nov 23,2024.
- Exam Code: XK0-005
- Exam Name: CompTIA Linux+ Exam
- Certification Provider: CompTIA
- Latest update: Nov 23,2024
A Linux administrator is creating a primary partition on the replacement hard drive for an application server.
Which of the following commands should the administrator issue to verify the device name of this partition?
- A . sudo fdisk /dev/sda
- B . sudo fdisk -s /dev/sda
- C . sudo fdisk -l
- D . sudo fdisk -h
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 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
A junior Linux administrator is tasked with installing an application.
The installation guide states the application should only be installed in a run level 5 environment.
Which of the following commands would ensure the server is set to runlevel 5?
- A . systemct1 isolate multi-user.target
- B . systemct1 isolate graphical.target
- C . systemct1 isolate network.target
- D . systemct1 isolate basic.target
A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users’ access will be disabled once the project is over. The expiration date should be 2021-09-30.
Which of the following commands will accomplish this task?
- A . sudo useradd -e 2021-09-30 Project_user
- B . sudo useradd -c 2021-09-30 Project_user
- C . sudo modinfo -F 2021-09-30 Project_uses
- D . sudo useradd -m -d 2021-09-30 Project_user
A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git.
Which of the following commands will achieve this goal?
- A . git clone https://git.company.com/admin/project.git
- B . git checkout https://git.company.com/admin/project.git
- C . git pull https://git.company.com/admin/project.git
- D . git branch https://git.company.com/admin/project.git
An administrator installed an application from source into /opt/operations1/ and has received numerous reports that users are not able to access the application without having to use the full path /opt/operations1/bin/*.
Which of the following commands should be used to resolve this issue?
- A . echo ‘export PATH=$PATH:/opt/operations1/bin’ >> /etc/profile
- B . echo ‘export PATH=/opt/operations1/bin’ >> /etc/profile
- C . echo ‘export PATH=$PATH/opt/operations1/bin’ >> /etc/profile
- D . echo ‘export $PATH:/opt/operations1/bin’ >> /etc/profile
A Linux system is getting an error indicating the root filesystem is full.
Which of the following commands should be used by the systems administrator to resolve this issue? (Choose three.)
- A . df -h /
- B . fdisk -1 /dev/sdb
- C . growpart /dev/mapper/rootvg-rootlv
- D . pvcreate /dev/sdb
- E . lvresize CL +10G -r /dev/mapper/rootvg-rootlv
- F . lsblk /dev/sda
- G . parted -l /dev/mapper/rootvg-rootlv
- H . vgextend /dev/rootvg /dev/sdb
A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running.
Which of the following commands can accomplish this task?
- A . docker cp container_id/deployment.yaml deployment.yaml
- B . docker cp container_id:/deployment.yaml deployment.yaml
- C . docker cp deployment.yaml local://deployment.yaml
- D . docker cp container_id/deployment.yaml local://deployment.yaml
A Linux system is failing to start due to issues with several critical system processes.
Which of the following options can be used to boot the system into the single user mode? (Choose two.)
- A . Execute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot.
- B . Interrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line.
- C . Interrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line.
- D . Interrupt the boot process in the GRUB menu and add single=user in the kernel line.
- E . Interrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line.
- F . Interrupt the boot process in the GRUB menu and add systemd.unit=single.target in the kernel line.