AMAADOR ACADEMYCertificatesVerify a certificate

LNXPLS

Final check — CompTIA Linux+ XK0-006 (V8) Exam Prep

Answer the 42 questions. You need 80% or more to pass. You can retry as many times as you like.

Study the course →

Question 1According to CompTIA, what is the passing score for Linux+ XK0-006?
Question 2Which XK0-006 domain carries the largest weight?
Question 3An administrator must stop the floppy module from loading on every boot of a server. What is the correct approach?
Question 4A server boots to a graphical login, but it is a headless web server. The team wants it to boot to a text multi-user mode from now on. Which command does this?
Question 5A third-party vendor ships a self-contained monitoring agent as a tarball. Following the FHS, where should it be installed?
Question 6Which man page section documents configuration file formats such as fstab?
Question 7After a new disk was added, a server sometimes names the data disk sdb and sometimes sdc. The fstab entry uses /dev/sdb1 and the mount fails on some boots. What is the best fix?
Question 8An administrator must shrink an XFS filesystem on a logical volume by 10 GiB to free space for another volume. What is true?
Question 9A volume group has no free space. A new 100 GiB disk /dev/sdd is installed. Which sequence lets you extend /dev/datavg/applv?
Question 10Which RAID level needs at least three disks and survives the loss of one disk using distributed parity?
Question 11An NFS share is added to /etc/fstab on a laptop that is often off the office network. The team wants the laptop to boot normally when the server is unreachable. Which option helps most?
Question 12Which command shows block devices as a tree with their sizes and mount points?
Question 13On an Ubuntu server, a script must find out which installed package provides /usr/bin/curl. Which command does this?
Question 14An administrator runs apt upgrade on a new Debian server, but no packages are offered even though updates were published yesterday. What was most likely skipped?
Question 15A backup job is slowing down a production server. The team wants the running job (PID 4210) to yield CPU to other processes without stopping it. Which command fits?
Question 16A daemon is hung and ignores kill 2315. The administrator has already waited and checked that no data is being written. What is the next step?
Question 17Which command lists listening TCP and UDP sockets with the owning process, in numeric form?
Question 18dig intranet.example.com returns the right address, but an application on the same server resolves the name to an old IP. What should you check first?
Question 19An administrator installs chronyd and wants it to start now and at every boot. Which single command does both?
Question 20A colleague edited /usr/lib/systemd/system/app.service to add an environment variable. After a package update the change is gone. How should it be done?
Question 21A nightly report is scheduled with a systemd timer on a laptop that is often off at night. The team wants a missed run to happen at the next boot. Which setting does this?
Question 22User ana is in the groups ana and web. An admin runs usermod -G docker ana. What is the result?
Question 23A file shows permissions -rwxr-x---. What is the octal mode?
Question 24A container runs nginx with podman run -d -p 8080:80 nginx. Pages uploaded into the container disappear each time it is recreated. What should the team change?
Question 25A user installed their public key on a server, but SSH still asks for a password. authorized_keys is mode 666 and ~/.ssh is mode 777. What is the most likely cause?
Question 26The web operations group must be able to restart nginx and nothing else as root. What is the best sudo approach?
Question 27On a RHEL server, an admin ran firewall-cmd --add-service=https. It worked, but after a reboot HTTPS is blocked again. What was missing?
Question 28An application on a RHEL server must connect to a remote database, but SELinux blocks httpd from making network connections. What is the correct fix?
Question 29Which tool sets up full-disk or partition encryption on Linux?
Question 30After an incident, the security team wants to know whenever anyone writes to or changes the attributes of /etc/shadow. Which tool is designed for this?
Question 31A script contains: if [ $1 = "prod" ]; then … When run with no argument it prints “unary operator expected”. What fixes it?
Question 32In Bash, what does the special variable $? contain?
Question 33An admin wants both normal output and errors of ./deploy.sh saved in deploy.log, replacing any old log. Which line does this?
Question 34A bad commit that changed NTP settings has already been pushed to the shared main branch and pulled by colleagues. How should it be undone?
Question 35An Ansible playbook is run twice on the same hosts. The second run reports changed=0 for every task. What does this show?
Question 36Which tool is agentless and pushes configuration to managed hosts over SSH using YAML playbooks?
Question 37After adding a disk, a server drops into emergency mode at boot. The journal shows a timeout waiting for a device listed in /etc/fstab. What is the best first action?
Question 38An admin deleted a 30 GiB log file, but df still shows the filesystem full. du does not find the space. What explains this?
Question 39A 4-core server feels slow. top shows a load average of 9, CPU user time at 6% and wa (iowait) at 70%. Where should the investigation focus?
Question 40A client gets “connection timed out” when connecting to port 5432 on a database server. On the server, ss shows postgres listening on 0.0.0.0:5432. What is the most likely cause?
Question 41User omar gets “Permission denied” opening /srv/reports/q3/summary.txt. The file is 644 and owned by omar. Which check is the most useful next?
Question 42A Java service on a server stops several times a day without an error in its own log. Which source is most likely to show why?