XK0-004 Exam Details

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

CompTIA XK0-004 Online Questions & Answers

  • Question 431:

    An administrator needs to see a list of the system user's encrypted passwords. Which of the following Linux files does the administrator need to read?

    A. /etc/shadow
    B. /etc/skel
    C. /etc/passwd
    D. /etc/pw

  • Question 432:

    A networked has been crashing intermittently. A Linux administrator would like to write a shell script that will attempt to ping the server and email an alert if the server fails to respond. The script will later be scheduled via cron job.

    Which of the following scripts would BEST accomplish this task?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 433:

    Which of the following commands adds a bootioader that will allow an administrator to boot to a specific kernel version?

    A. mkinitrd
    B. dracut
    C. grub2-install
    D. grub2-mkconfig

  • Question 434:

    A configuration management tool running every minute is enforcing the service HTTPd to be started. To perform maintenance, which of the following series of commands can be used to prevent the service from being started?

    A. systemctl stop httpd andand systemctl mask httpd
    B. systemctl disable httpd andand systemctl mask httpd
    C. systemctl stop httpd andand systemctl hide httpd
    D. systemctl disable httpd andand systemctl hide httpd

  • Question 435:

    A systems administrator needs to see if a mail server is listening on port 25. Which of the following is the BEST command for the administrator to run on the mail server to see if the port is listening for connections?

    A. netatat -punta1 I grep 25
    B. telnet lecalhost -P 25
    C. ps aux I grap 25
    D. nslookup localhost 25

  • Question 436:

    A Linux administrator needs to copy the log files and all the subdirectories in /var/log/archive to the /log/backups/ directory on a remote server at backup.example.com. The administrator will use the archive user account to access the remote server.

    Which of the following commands will do this?

    A. scp -r /var/log/archive [email protected]:/log/backups
    B. scp -r /var/log/archive backup.example.com:/log/backups
    C. scp /var/log/archive/* [email protected]:/log/backups
    D. scp -r backup.example.com:/log/backups /var/log/archive

  • Question 437:

    A system shows high utilization of swap space but low utilization of physical memory.

    Which of the following commands should an administrator run to free up usable swap space?

    A. mkswap ; swapon -a
    B. free andand swapon -a
    C. swapoff -a andand swapon -a
    D. swapon -a ; swapoff -a

  • Question 438:

    A Linux systems administrator is implementing Source Code Management for the web application server configuration files located in /etc/httpd/. Which of the following steps should the administrator perform FIRST?

    A. Clone the remote repository using `git clone'
    B. Create a new repository using `git init'
    C. Retrieve the remote changes using `git commit'
    D. Configure the directory for git using `git config'

  • Question 439:

    A Linux administrator looks at the /etc/timezone file and determines the need to change the time zone from California to New York temporarily. Which of the following commands will accomplish this?

    A. sed -f TZ=America/New_York
    B. cat TZ=America/New_York
    C. export TZ=America/New_York
    D. printf TZ=America/New_York

  • Question 440:

    A systems engineer scheduled an at job that will reboot a critical server. A developer states the processes will not complete for another three hours. Which of the following will help the systems engineer to remove the job?

    A. atq atrm
    B. at -q atrm
    C. atq atrm
    D. at -q atrm

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.