Free preview mode

Enjoy the free questions and consider upgrading to gain full access!

XK0-004Free trialFree trial

By comptia
Aug, 2025

Verified

25Q per page

Question 51

An administrator needs to look at a log for an application on a systemd-based system. There is no log for this application in /var/log. Which of the following is another way to view the application log on this system?

  • A: tail -f /var/log/secure
  • B: journalctl ג€"u application
  • C: systemctl application.service
  • D: watch /var/lib/application/

Question 52

Which of the following is true about Type 2 hypervisors?

  • A: Type 2 hypervisors run on top of another general purpose OS.
  • B: Type 2 hypervisors are often called bare-metal or native hypervisors.
  • C: Type 2 hypervisors offer a performance increase to the guests in comparison to a Type 1 hypervisor.
  • D: Only Type 2 hypervisors allow direct access to CPU virtualization features.

Question 53

A Linux administrator is testing connectivity to a remote host on a shared terminal. The administrator wants to allow other users to access the terminal while the command is executing.
Which of the following commands should the administrator use?

  • A: bg ping remotehost
  • B: fg ping remotehost
  • C: ping remotehost < results
  • D: ping remotehost &

Question 54

A security administrator wants to display a warning banner before a user logs in. Which of the following files must be edited to make this happen?

  • A: /etc/services
  • B: /etc/issue
  • C: /etc/hosts
  • D: /etc/motd

Question 55

Using which of the following control mode commands is the correct way to substitute all occurrences of /dev/sdc with /dev/sdd while editing a file in vi?

  • A: :s//dev/sdc//dev/sdd
  • B: :s/\/dev\/sdc/\/dev\/sdd/g
  • C: :s/\/dev\/sdc/\/dev\/sdd
  • D: :%s/\/dev\/sdc/\/dev\/sdd

Question 56

A user needs to modify the IP address of a laptop. Which of the following files can be used to configure the network interface named eth0?

  • A: /etc/sysconfig/network/interfaces.cnf
  • B: /system/config/interfaces
  • C: /etc/sysconfig/network-scripts/ifcfg-eth0
  • D: /system/networking/ifconfig
  • E: /etc/interfaces/eth0.conf

Question 57

A user wants to use terminal services from a Windows workstation to manage a Linux server. Which of the following should be installed on the Linux server to enable this functionality?

  • A: VNC
  • B: rdesktop
  • C: SPICE
  • D: XRDP

Question 58

On a UEFI-based system, which of the following invokes GRUB2 from the EFI command prompt?

  • A: boot//EFI/grub2.efi
  • B: EFI/grub2.efi
  • C: /boot/EFI/grub2.efi
  • D: /grub2.efi

Question 59

A systems administrator notices a large number of autoloaded device modules are no longer needed and decides to do a cleanup of them. Which of the following commands will accomplish this task?

  • A: rmmod -c
  • B: depmod -r
  • C: insmod -c
  • D: modprobe -r

Question 60

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 61

A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user's account?

  • A: pam_tally2 --user=user --reset
  • B: passwd -u user -G root
  • C: usermod -u user -G root
  • D: chage -1 user=user --reset

Question 62

A systems administrator receives a report that the web server is not running after a planned system reboot. After starting the web server manually, which of the following commands should the administrator issue to ensure the web server starts at boot time?

  • A: systemctl service on
  • B: systemctl enable <name>.service
  • C: systemctl service enable
  • D: systemctl on <name>.service

Question 63

A Linux administrator needs to switch from text mode to GUI. Which of the following runlevels will start the GUI by default?

  • A: Runlevel 3
  • B: Runlevel 4
  • C: Runlevel 5
  • D: Runlevel 6

Question 64

A technician wants to secure a sensitive workstation by ensuring network traffic is kept within the local subnet. To accomplish this task, the technician executes the following command: echo 0 > /proc/sys/net/ipv4/ip_default_ttl
Which of the following commands can the technician use to confirm the expected results? (Choose two.)

  • A: tcpdump
  • B: traceroute
  • C: route
  • D: iperf
  • E: ip
  • F: arp

Question 65

An administrator needs to create a file named hello in the home directory that contains the following text: it's me!
Which of the following commands would accomplish this goal?

  • A: mkdir ~/hello touch ~/"it's me!"
  • B: touch ~/hello echo "it's me!" > ~/hello
  • C: mv ~/hello cp "it's me!" > ~/hello
  • D: type ~/hello print "it's me!"

That’s the end of your free questions

You’ve reached the preview limit for XK0-004

Consider upgrading to gain full access!

Page 3 of 13 • Questions 51-75 of 322

Free preview mode

Enjoy the free questions and consider upgrading to gain full access!