CompTIA XK0-004 CompTIA Linux+ Certification Exam Online Training
CompTIA XK0-004 Online Training
The questions for XK0-004 were last updated at Nov 22,2024.
- Exam Code: XK0-004
- Exam Name: CompTIA Linux+ Certification Exam
- Certification Provider: CompTIA
- Latest update: Nov 22,2024
A Linux administrator needs to take stock of USB devices attached to the system.
Which of the following commands would be BEST to complete this task?
- A . lspci
- B . lsusb
- C . cat /proc/USB
- D . modprobe -Cusb
A systems administrator is troubleshooting an intermittent network connection at the IP address 192.168.1.23.
The administrator wishes to monitor the connection at five-minute intervals for one hour.
Which of the following commands will accomplish this task?
- A . ping -i 5 192.168.1.23
- B . ping -c 12 192.168.1.23
- C . ping -c 12 -i 300 192.168.1.23
- D . ping -c 60 -i 100 192.168.1.23
Which of the following are Linux desktop managers? (Choose two.)
- A . KDE
- B . GNOME
- C . GUI
- D . VNC
- E . X11
- F . SPICE
A system administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role.
Which of the following could be used to install more Linux servers with the same characteristics?
- A . /etc/sysconfig/anaconda/cfg
- B . /root/anaconda.auto
- C . /root/anaconda-ks.cfg
- D . /etc/sysconfig/installation.cfg
A user has connected a Bluetooth mouse to a computer, but it is not working properly.
Which of the following commands should the systems administrator use to fix the issue?
- A . lsmod Ci bluetooth
- B . insmod bluetooth
- C . modprobe Cr bluetooth
- D . depmod Ci bluetooth
An administrator needs to mount the shared NFS file system testhost:/testvolume to mount point /mnt/testvol and make the mount persistent after reboot.
Which of the following BEST demonstrates the commands necessary to accomplish this task?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
Which of the following would be the BEST solution for a systems administrator to access the graphical user environment of a Linux machine remotely?
- A . VNC
- B . KDE
- C . X11
- D . RPC
A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate.
The administrator uses the command renice -n -5 -p2864, but it does not solve the issue.
Which of the following commands should the administrator execute to correct the issue?
- A . nice -n 5 -p 2864
- B . nice -n -5 -p 2864
- C . renice -n 10 -p 2864
- D . renice -n -10 -p 2864
A Linux systems administrator installed a new web server, which failed while attempting to start. The administrator suspects that SELinux is causing an issue and wants to temporarily put the system into permissive mode.
Which of the following would allow the administrator to accomplish this?
- A . echo SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
- B . setenforce 0
- C . sestatus 0
- D . chcon httpd_sys_content_t /var/
CORRECT TEXT
A junior system administrator had trouble installing and running an Apache web server on a
Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.
INSTRUCTIONS
Install Apache and start the service. Verify that the Apache service is running with the defaults.
Typing “help” in the terminal will show a list of relevant commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
CentOS Command Prompt
No comment