CompTIA Linux+ Practice Questions: System Management

36 free, exam-style CompTIA Linux+ (XK0-006) practice questions covering System Management. Each question shows the correct answer and a clear explanation. Ready for the real thing? Take the full timed quiz below.

🚀 Take the full CompTIA Linux+ quiz 📘 CompTIA Linux+ study guide

Q1. Which directory contains systemd unit files?

Explanation: systemd looks for units in multiple directories with /etc taking precedence. Learn more.

Q2. What does 'systemctl isolate multi-user.target' do?

Explanation: Changes system state to multi-user (non-GUI) target. Learn more.

Q3. What is the purpose of 'make modules_install' during kernel compilation?

Explanation: Installs compiled modules to /lib/modules/<version>/. Learn more.

Q4. Which command shows kernel module dependencies?

Explanation: lsmod displays loaded modules and dependencies. Learn more.

Q5. Which command refreshes systemd configuration?

Explanation: daemon-reload reloads unit files after modification. Learn more.

Q6. What does 'chroot' do?

Explanation: chroot jail confines processes to a specific directory tree. Learn more.

Q7. Which directory holds temporary systemd mount units?

Explanation: /run contains transient runtime configuration. Learn more.

Q8. What is the purpose of 'at' command?

Explanation: at executes commands once at a specified time. Learn more.

Q9. Which directory contains udev rules?

Explanation: Custom udev rules go in /etc/udev/rules.d/*.rules. Learn more.

Q10. What is the purpose of /etc/aliases?

Explanation: Used by sendmail/postfix for email forwarding. Learn more.

Q11. Which file defines cron jobs for all users?

Explanation: /etc/crontab is the system-wide crontab file. Learn more.

Q12. Which directory contains kernel header files?

Explanation: Header files needed for compiling kernel modules. Learn more.

Q13. Which command shows GRUB menu during boot?

Explanation: Shift shows GRUB menu on UEFI systems; Esc on BIOS. Learn more.

Q14. Which file defines default runlevel in SysV init?

Explanation: inittab specifies default runlevel (replaced by systemd targets). Learn more.

Q15. What does 'ulimit -a' display?

Explanation: Shows resource limits (CPU, memory, processes, etc.). Learn more.

Q16. Which file defines default GRUB boot parameters?

Explanation: /etc/default/grub is modified then grub-mkconfig generates grub.cfg. Learn more.

Q17. What does 'systemctl mask' do?

Explanation: mask prevents accidental service activation via symlink to /dev/null. Learn more.

Q18. Which command lists all cron jobs for the current user?

Explanation: crontab -l displays user's scheduled jobs. Learn more.

Q19. What is the purpose of the 'ldconfig' command?

Explanation: ldconfig updates links and cache for shared libraries. Learn more.

Q20. Which directory contains initramfs images?

Explanation: initramfs stored in /boot with kernel images. Learn more.

Q21. Which command lists loaded kernel modules?

Explanation: lsmod shows currently loaded modules. Learn more.

Q22. What does 'systemctl enable' do?

Explanation: Enables service to start at boot time. Learn more.

Q23. Which directory contains kernel modules?

Explanation: Modules stored in /lib/modules/<kernel-version>/. Learn more.

Q24. Which directory contains udev device rules?

Explanation: Custom udev rules go in /etc/udev/rules.d/*.rules. Learn more.

Q25. Which file defines NTP servers for chronyd?

Explanation: chronyd uses chrony.conf for NTP configuration. Learn more.

Q26. What is the purpose of 'systemd-inhibit'?

Explanation: Temporarily inhibits power/sleep states. Learn more.

Q27. Which file defines keyboard layout settings?

Explanation: Multiple files control keyboard settings depending on environment. Learn more.

Q28. What does 'grub2-mkconfig -o /boot/grub2/grub.cfg' do?

Explanation: Rebuilds GRUB configuration file from templates. Learn more.

Q29. Which systemd command shows failed units?

Explanation: systemctl --failed lists units that are currently in a failed state. Learn more.

Q30. Which systemd target is comparable to a multi-user text mode without a graphical interface?

Explanation: multi-user.target provides multi-user services without requiring a graphical desktop. Learn more.

Q31. Which command creates a new user with a home directory on many Linux distributions?

Explanation: useradd -m creates a user and home directory on systems where useradd is used directly. Learn more.

Q32. Which command displays loaded kernel modules?

Explanation: lsmod lists modules currently loaded into the Linux kernel. Learn more.

Q33. Which systemd command enables a service to start automatically at boot?

Explanation: systemctl enable creates the boot-time links needed for a service to start automatically. Learn more.

Q34. Which command displays CPU architecture and model details?

Explanation: lscpu displays CPU architecture, cores, threads, and model information. Learn more.

Q35. Which command rebuilds an initramfs image on many RPM-based Linux distributions?

Explanation: dracut creates initramfs images, and -f overwrites the existing image when drivers or early-boot configuration change. Learn more.

Q36. Which command loads a kernel module and automatically resolves its module dependencies?

Explanation: modprobe uses the module dependency database to load the requested module and any required dependencies. Learn more.

More CompTIA Linux+ practice topics