Exam Details

  • Exam Code
    :XK0-004
  • Exam Name
    :CompTIA Linux+ Certification Exam
  • Certification
    :CompTIA Linux+
  • Vendor
    :CompTIA
  • Total Questions
    :516 Q&As
  • Last Updated
    :Aug 23, 2023

CompTIA CompTIA Linux+ XK0-004 Questions & Answers

  • Question 31:

    Which of the following is used in unattended server installation via PXE?

    A. Kickstart

    B. YAML

    C. Cloud-init

    D. Container image

  • Question 32:

    A Linux administrator needs to back up files from a user's home directory to a remote server. The administrator copied the files last week but must ensure any files created or modified since then are added.

    Which of the following is the BEST command for the administrator to use?

    A. scp -r /home/user99/* [email protected]:/backups/user99/

    B. rsync -r /home/user99 [email protected]:/backups

    C. cp -rf /home/user99/* /mnt/backups/user99/

    D. sftp -b /home/user99/* [email protected]:/backups

  • Question 33:

    A user is reporting unusual slowness when trying to transfer a large file to an NFS server from a workstation. The administrator runs tracepath and gets the following output:

    Which of the following BEST describes the issue and a possible solution?

    A. The path MTU is lower than the source MTU. Reduce the source MTU setting.

    B. There is latency at the storage device. Work with the storage team to correct the issue.

    C. There is latency on an intermediate router. Increase the path MTU to compensate.

    D. There are dropped packets at an intermediate router. Work with the network team to correct the issue.

  • Question 34:

    Users in the sales department are unable to create new files in the shared directory /Sales. A junior Linux administrator determines the permissions on the /Sales directory are set to rwxr-----, and sales is the group owner of the directory. Which of the following is the BEST command for the junior administrator to issue to allow the users to create new files?

    A. umask 002

    B. chmod 770 /Sales

    C. chmod g+s /Sales

    D. chmod 777 /Sales

  • Question 35:

    Given the output below:

    [root@appserver ~]# rm config.txt rm: remove regular file 'config.txt'? yes rm: cannot remove 'config.txt': Operation not permitted

    Which of the following might be the cause?

    A. The file config.txt does not have the user write bit set.

    B. The file config.txt does not exist.

    C. The file config.txt has the immutable attribute set.

    D. The file config.txt has an ACL that does not permit deletion by others.

  • Question 36:

    The Apache web server was recently installed on a Debian/Ubuntu server. The web server fails and a review of log messages on another partition reveals the installation was not completed properly due to lack of disk space. After clearing the files, the systems administrator has requested the installation to be performed again.

    Which of the following command lines will perform this task? (Choose two.)

    A. apt-get install apache2

    B. apt-get --purge remove acache2

    C. apt-get --reinstall install apache2

    D. apt-get --reinstall apache2

  • Question 37:

    A user wants to alias dir so it always returns the contents of the ls -la command. However, the user has to reset the alias with every login. Which of the following is the BEST action the user can take to ensure the command is always available?

    A. echo "alias dir=ls -la" > /etc/profile

    B. echo "alias dir=ls -la" >> /etc/skel

    C. echo "alias dir=ls -la" >> ~/.profile

    D. echo "alias dir=ls -la" > ~/.bashrc

  • Question 38:

    A systems administrator needs to run the yum update command two hours after employees log off and leave for the day on Friday. Which of the following is the BEST command to complete the task, if the task only needs to be run once?

    A. screen

    B. cron

    C. at

    D. nohup

  • Question 39:

    Which of the following are classified as Linux GUI servers? (Choose two.)

    A. VNC

    B. KDE

    C. Gnome

    D. Wayland

    E. MATE

    F. X11

  • Question 40:

    A Linux administrator tried to copy files to a remote server but received an error message indicating a lack of free space on the disk. The administrator issued a df command and verified adequate free space and inodes on the filesystem. Which of the following commands is the BEST way to diagnose the issue?

    A. cat /proc/meminfo

    B. lsof -nP | grep deleted

    C. find / -type f -size +50M

    D. du -a / | sort -n -r | head -n 30

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your XK0-004 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.