CompTIA Linux+ v1.0 (XK0-005)

Page:    1 / 13   
Total 190 questions

A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but receives the following error message:

Given the following analysis:

Which of the following is causing the error message?

  • A. The administrator is not using a highly privileged account.
  • B. The filesystem is mounted with the wrong options.
  • C. SELinux file context is denying the ACL changes.
  • D. File attributes are preventing file modification.


Answer : D

A Linux administrator needs to create a new cloud.cpio archive containing all the files from the current directory. Which of the following commands can help to accomplish this task?

  • A. ls | cpio -iv > cloud.epio
  • B. ls | cpio -iv < cloud.epio
  • C. ls | cpio -ov > cloud.cpio
  • D. ls cpio -ov < cloud.cpio


Answer : C

A systems administrator made some changes in the ~/.bashrc file and added an alias command. When the administrator tried to use the alias command, it did not work. Which of the following should be executed FIRST?

  • A. source ~/.bashrc
  • B. read ~/.bashrc
  • C. touch ~/.bashrc
  • D. echo ~/.bashrc


Answer : A

A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?

  • A. id_dsa.pem
  • B. id_rsa
  • C. id_ecdsa
  • D. id_rsa.pub


Answer : D

A Linux administrator cloned an existing Linux server and built a new server from that clone. The administrator encountered the following error after booting the cloned server:

The administrator performed the commands listed below to further troubleshoot and mount the missing filesystem:

Which of the following should administrator use to resolve the device mismatch issue and mount the disk?

  • A. mount disk by device-id
  • B. fsck -A
  • C. mount disk by-label
  • D. mount disk by-blkid


Answer : D

A systems administrator installed a new software program on a Linux server. When the systems administrator tries to run the program, the following message appears on the screen.

Which of the following commands will allow the systems administrator to check whether the system supports virtualization?

  • A. dmidecode -s system-version
  • B. lscpu
  • C. sysctl -a
  • D. cat /sys/device/system/cpu/possible


Answer : B

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


Answer : A

A Linux systems administrator needs to persistently enable IPv4 forwarding in one of the Linux systems. Which of the following commands can be used together to accomplish this task? (Choose two.)

  • A. sysctl net.ipv4.ip_forward
  • B. sysctl -w net.ipv4.ip_forward=1
  • C. echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
  • D. echo 1 > /proc/sys/net/ipv4/ip_forward
  • E. sysctl –p
  • F. echo "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf


Answer : BC

Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?

  • A. find /var/log -type d -mtime +180 -print -exec rm {} \;
  • B. find /var/log -type f -modified +180 -rm
  • C. find /var/log -type f -mtime +180 -exec rm {} \
  • D. find /var/log -type c -atime +180 –remove


Answer : A

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.


Answer : A

Some servers in an organization have been compromised. Users are unable to access to the organization’s web page and other services. While reviewing the system log, a systems administrator notices messages from the kernel regarding firewall rules:

Which of the following commands will remediate and help resolve the issue?

  • A.
  • B.
  • C.
  • D.


Answer : B

A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection.
Given the following output:

Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?

  • A. restorecon -rv .ssh/authorized_key
  • B. mv .ssh/authorized_key .ssh/authorized_keys
  • C. systemctl restart sshd.service
  • D. chmod 600 mv .ssh/authorized_key


Answer : B

A Linux administrator needs to resolve a service that has failed to start. The administrator runs the following command:

The following output is returned

Which of the following is MOST likely the issue?

  • A. The service does not have permissions to read write the startupfile.
  • B. The service startupfile size cannot be 81k.
  • C. The service startupfile cannot be owned by root.
  • D. The service startupfile should not be owned by the root group.


Answer : A

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


Answer : D

A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemctl isolate graphical.target and rebooted the system by running systemctl 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.


Answer : C

Page:    1 / 13   
Total 190 questions