XK0-005 Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :476 Q&As
  • Last Updated
    :May 25, 2026

CompTIA XK0-005 Online Questions & Answers

  • Question 271:

    A systems technician needs to install a third-party software package.

    Which of the following commands would allow the technician to download this software package from a remote server?

    A. netstat
    B. nc
    C. telnet
    D. wget

  • Question 272:

    A Linux administrator rebooted a server. Users then reported some of their files were missing. After doing some troubleshooting, the administrator found one of the filesystems was missing. The filesystem was not listed in /etc/f stab and might have been mounted manually by someone prior to reboot. Which of the following would prevent this issue from reoccurring in the future?

    A. Sync the mount units.
    B. Mount the filesystem manually.
    C. Create a mount unit and enable it to be started at boot.
    D. Remount all the missing filesystems

  • Question 273:

    A Linux engineer receives the following notification from a system: cp: cannot create regular file '/app/appdata.tar*': No space left on device The engineer obtains the following output: [root@host ~]# df -i /app Filesystem Inodes IUsed IFree Mounted on /dev/vdb 2048 2048 0 /app bash CopyEdit

    [root@host ~]# df -h /app Filesystem Size Used Avail Use% Mounted on /dev/vdb 2.0G 6.1M 1.9G 1% /app Which of the following describes the state of the filesystem based on this output?

    A. The filesystem was mounted in read-only mode.
    B. The filesystem has depleted the available inodes.
    C. The filesystem is not mounted in the correct location.
    D. The filesystem has consumed the available space.

  • Question 274:

    A Linux administrator needs to forward port 8000 on a remote server to port 8000 on a local server. Which of the following commands should the administrator run on the local server to achieve this goal?

    A. firewall-cmd --add-forward-port=port=8000=tcp=8000=remote
    B. iptables -A FORWARD -m state -p tcp -d remote --dport 9000 -j accept
    C. ssh -R 8000:localhost:9000 remote
    D. socat TCP4-LISTEN:8000,fork TCP4:remote:8000

  • Question 275:

    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

  • Question 276:

    A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?

    A. grep -i auto /etc/systemd/journald.conf andand systemct1 restart systemd-journald.service
    B. cat /etc/systemd/journald.conf | awk '(print $1,$3)'
    C. sed -i 's/auto/persistent/g' /etc/systemd/journald.conf andand sed -i 'persistent/s/^#//q' /etc/systemd/journald.conf
    D. journalctl --list-boots andand systemct1 restart systemd-journald.service

  • Question 277:

    An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?

    A. rpm -qa | grep kernel; uname -a
    B. yum -y update; shutdown -r now
    C. cat /etc/centos-release; rpm -Uvh --nodeps
    D. telinit 1; restorecon -Rv /boot

  • Question 278:

    Which of the following is a way to enable a production web server's communications with strong encryption and identity verification?

    A. Creating a key pair using ssh-keygen and using the generated key pair to secure the HTTPS communication
    B. Creating a private key locally using openssl, creating a certificate request, sending the request to an external certification provider, and using the provided certificate for HTTPS communication
    C. Creating a 4096-bytes or longer self-signed certificate using openssl and using it to secure HTTPS communication
    D. Creating a secret file using /dev/random as a source and using the generated file for HTTPS communication

  • Question 279:

    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/

  • Question 280:

    A Linux administrator is configuring a two-node cluster and needs to be able to connect the nodes to each other using SSH keys from the root account. Which of the following commands will accomplish this task?

    A. [root@nodea ssh --i ~/ . ssh/
    B. [root@nodea scp -i . ssh/id rsa root@nodeb
    C. [root@nodea ssh--copy-id --i .ssh/id rsa root@nodeb
    D. [root@nodea # ssh add -c ~/ . ssh/id rsa root@nodeb
    E. [root@nodea # ssh add -c ~/. ssh/id rsa root@nodeb

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-005 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.