CompTIA Linux+ XK0-005 - All Domains Linux Administration Security Scripting

By Jordan Blake · Updated Jul 10, 2026

Questions25
Passing Score75%
Format100% Multiple Choice
Sessions Logged1,479
Your progressLog in / Register to track times taken, best score, questions mastered, and coverage on this quiz.
Rating
Community rating 4.1 out of 5 from 10 ratings.
4.1 (10)

Topics covered

This quiz

Uncategorized25 (100%)

Uncategorized25 questions

Question catalog for this preview

Catalog listing of the 5 preview questions for this quiz.

Question 1

A Linux administrator wants to monitor real-time system performance (CPU, memory, disk I/O, network) all in one tool. Which command provides this?

Answer choices

  • A. `top`

  • B. `vmstat`

  • C. `glances` or `htop` (all-in-one monitoring) / `sar` for historical

  • D. `iostat`

Question 2

An administrator finds that the /var/log partition is at 98% capacity, causing some services to fail. What is the CORRECT immediate action?

Answer choices

  • A. Delete all logs to free space

  • B. Identify and archive/compress large or old log files using logrotate, compress .gz, or move to archive storage; investigate which service is generating excessive logs

  • C. Reboot the server

  • D. Increase the swap space

Question 3

A system administrator needs to mount an NFS share `/share/data` from server `192.168.1.100` to `/mnt/data` persistently. Which entry in `/etc/fstab` accomplishes this?

Answer choices

  • A. `192.168.1.100:/share/data /mnt/data nfs defaults 0 0`

  • B. `nfs://192.168.1.100/share/data /mnt/data auto defaults 0 0`

  • C. `/mnt/data 192.168.1.100:/share/data nfs rw 0 0`

  • D. `192.168.1.100:/share/data /mnt/data cifs defaults 0 0`

Question 4

A DevOps engineer needs to create a Docker container running Nginx, mapping host port 8080 to container port 80, with the container running in the background. Which command is correct?

Answer choices

  • A. `docker run nginx -p 80:8080 -d`

  • B. `docker run -d -p 8080:80 nginx`

  • C. `docker start -p 8080:80 nginx`

  • D. `docker exec -d -p 8080:80 nginx`

Question 5

A Linux administrator needs to install a package from the local filesystem (a .rpm file) on a Red Hat-based system without using a repository. Which command is used?

Answer choices

  • A. `apt install package.rpm`

  • B. `rpm -ivh package.rpm`

  • C. `yum install package.rpm` (downloads from repo)

  • D. `dpkg -i package.rpm`