CompTIA XK0-005 Real Exam Questions
The questions for XK0-005 were last updated at Sep 05,2024.
- Exam Code: XK0-005
- Exam Name: CompTIA Linux+ Exam
- Certification Provider: CompTIA
- Latest update: Sep 05,2024
A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners.
Which of the following will accomplish this goal?
- A . chmod +t /project/access2all
- B . chmod +rws /project/access2all
- C . chmod 2770 /project/access2all
- D . chmod ugo+rwx /project/access2all
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 engineer set up two local DNS servers (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared:
The local machine DNS settings are:
Which of the following commands could the engineer use to query the DNS server to get mail server information?
- A . dig @example.com 10.10.10.20 a
- B . dig @10.10.10.20 example.com mx
- C . dig @example.com 10.10.10.20 ptr
- D . dig @10.10.10.20 example.com ns
A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote.
Which of the following commands will achieve the desired effect?
- A . scp -p /data remote:/backup/data
- B . ssh -i /remote:/backup/ /data
- C . rsync -a /data remote:/backup/
- D . cp -r /data /remote/backup/
A junior administrator is setting up a new Linux server that is intended to be used as a router at a remote site.
Which of the following parameters will accomplish this goal?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemct1 isolate graphical.target and rebooted the system by running systemct1 reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal.
Which of the following is the issue?
- A . The administrator did not reboot the server properly.
- B . The administrator did not set the default target to basic.target.
- C . The administrator did not set the default target to graphical.target.
- D . The administrator did not shut down the server properly.
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 cloud engineer needs to change the secure remote login port from 22 to 49000.
Which of the following files should the engineer modify to change the port number to the desired value?
- A . /etc/host.conf
- B . /etc/hostname
- C . /etc/services
- D . /etc/ssh/sshd_config
A Linux system is failing to boot with the following error:
Which of the following actions will resolve this issue? (Choose two.)
- A . Execute grub-install –root-directory=/mnt and reboot.
- B . Execute grub-install /dev/sdX and reboot.
- C . Interrupt the boot process in the GRUB menu and add rescue to the kernel line.
- D . Fix the partition modifying /etc/default/grub and reboot.
- E . Interrupt the boot process in the GRUB menu and add single to the kernel line.
- F . Boot the system on a LiveCD/ISO.
A Linux administrator created a new file system.
Which of the following files must be updated to ensure the filesystem mounts at boot time?
- A . /etc/sysctl
- B . /etc/filesystems
- C . /etc/fstab
- D . /etc/nfsmount.conf