XK0-006 Cheat Sheet: Key Facts to Review

The short version

Use this sheet for a last pass, not as your only study material. It does not cover everything on the exam, and CompTIA’s objectives document is the authority. Everything here is written in our own words and contains no real exam questions.

Exam facts at a glance

ItemDetail
CodeXK0-006 (V8)
QuestionsMaximum of 90, multiple-choice and performance-based
Time90 minutes
Passing score720 on a scale of 100 to 900
LanguageEnglish
Recommended experience12 months with Linux servers

Weightings: System Management 23%, Services and User Management 20%, Security 18%, Automation, Orchestration, and Scripting 17%, Troubleshooting 22%. More detail is on the exam format page.

System Management

Look-alike pairs.

  • `insmod` loads one module as is, `modprobe` also loads its dependencies.
  • `lvextend` grows the logical volume, `resize2fs` or `xfs_growfs` grows the filesystem inside it. xfs can grow but not shrink.
  • `fdisk` and `gdisk` edit partition tables, `blkid` shows UUIDs and types, `lsblk` shows the device tree.
  • `ss` is the modern socket tool, `ip` replaces `ifconfig` and `route`.
  • `tar` archives, `gzip`, `bzip2` and `xz` compress, `rsync` copies only differences.

Decision rules. If a change must survive a reboot, think `/etc/fstab`, Netplan or NetworkManager profiles, not a one-off command. If the scenario says script-friendly output, look for terse or machine-readable options.

Traps. A mount that fails at boot can stop the system, so `nofail` matters. Mount options such as `noexec`, `nosuid` and `nodev` are security choices.

Services and User Management

Look-alike pairs.

  • Hard link: same inode, same filesystem. Symbolic link: points to a path.
  • `enable` is for boot, `start` is now, `mask` blocks all starts, `daemon-reload` rereads unit files.
  • SIGTERM (15) asks politely, SIGKILL (9) cannot be caught, SIGHUP (1) often means reload.
  • `useradd` is low level, `adduser` is a Debian friendly wrapper; `chage` handles expiry and aging.
  • `at` runs once, `cron` repeats, `anacron` catches up after downtime.
  • Container `CMD` is default arguments, `ENTRYPOINT` is the main command; `docker run` creates, `docker exec` enters a running container.

Decision rules. For an RPM system think `dnf` and `rpm`, for Debian think `apt` and `dpkg`. For a service that must never start, mask it. To lower a process priority use `nice` or `renice`.

Traps. A zombie process cannot be killed because it is already dead, so you deal with its parent. Pruning volumes needs an extra option to remove named ones.

Security

Look-alike pairs.

  • `chcon` is a temporary context change, `restorecon` resets to policy, `semanage fcontext` stores a lasting rule.
  • firewalld runtime rules are lost on reload, permanent rules need `–permanent`.
  • `chmod` changes permission bits, `chattr +i` makes a file immutable, `chattr +a` allows append only.
  • `setuid` runs as the owner, `setgid` as the group, the sticky bit protects deletion in a shared directory.
  • DNAT rewrites the destination, SNAT rewrites the source.

Decision rules. Key-based SSH beats passwords. Limit access with `AllowUsers` or `AllowGroups`. Avoid Telnet, FTP and TFTP. Use TLS 1.2 and 1.3, and avoid weak algorithms. Use `visudo` to edit sudoers.

Traps. SELinux problems are often context or boolean problems, not permission bits. A `/sbin/nologin` shell stops interactive login for service accounts.

Automation, Orchestration, and Scripting

Look-alike pairs.

  • Ansible is agentless, Puppet normally uses an agent.
  • `git fetch` downloads, `git pull` downloads and merges. `merge` keeps history, `rebase` rewrites it.
  • `$(cmd)` is command substitution, `${var}` is parameter expansion.
  • `-eq` compares numbers, `==` compares strings.
  • `$?` holds the last return code, and 0 means success.

Decision rules. Variables must be exported to reach child processes. Always review AI-generated commands and scripts before running them, and keep sensitive data out of public models.

Traps. Python uses indentation as syntax. A `#!` line names the interpreter. PEP 8 is a style guide, not a language rule.

Troubleshooting

Symptoms and first checks.

  • Disk full: `df -h`, then `df -i` for inodes, then `du`.
  • Service failed: `systemctl status`, then `journalctl -u`.
  • Cannot reach remote hosts: `ip route`, then DNS with `dig`, then firewall rules.
  • Slow system: `top`, `vmstat`, `iostat`-style checks; high I/O wait points at storage.
  • Cannot write to a partition: check mount options, attributes, quotas, permissions and SELinux.

Decision rules. Work from the bottom up: link, IP, route, DNS, firewall, service. Change one thing at a time.

Traps. High load is not always high CPU. A full filesystem may be full of inodes. Monitoring terms: SLA is the agreement, SLI the measurement, SLO the target.

Last-day checklist

  • Reread your look-alike notebook.
  • Check ID, booking time and, for online delivery, the system test.
  • Plan your pacing: flag slow questions and return later.
  • Read every stem to the end, especially “select TWO”.
  • Sleep. A rested mind beats one more hour of cramming.

Next step

Fill gaps with the domains explained, and test yourself with the XK0-006 practice tests. See also the exam overview.