CompTIA Linux+ Practice Test 10

CompTIA Linux+ Practice Test

1 / 10

A user reports slow SSH logins. journalctl -u sshd shows "reverse mapping" delays. Which command disables this to speed up logins?

2 / 10

A server’s /etc/fstab has a typo, causing a mount failure at boot and dropping to emergency mode. Which command edits it from recovery?

3 / 10

A script fails with "command not found" for jq, despite being installed. which jq shows nothing. What’s the fix?

4 / 10

A database crashes with "out of memory" errors. free -m shows 100MB free, but swap is disabled. Which command enables swap on /swapfile?

5 / 10

A server’s iptables rules block port 80 after a reboot, despite iptables -A INPUT -p tcp --dport 80 -j ACCEPT. What ensures persistence?

6 / 10

A user’s ~/.bashrc sets an alias, but it’s unavailable in a new SSH session. What’s the likely issue, and how do you fix it?

7 / 10

After a kernel update, a server boots to a "kernel panic" error. You need to revert to the previous kernel from GRUB. Which key edits the boot entry?

8 / 10

A cron job running tar -czf /backup/data.tar.gz /data fails with "no space left on device," but df -h shows 50% free. What’s the likely fix?

9 / 10

A junior admin misconfigured /etc/hosts, and now ping server1 resolves to the wrong IP. Which command verifies the resolution order?

10 / 10

A server’s /tmp directory is full, causing application crashes. df -h shows 100% usage, but ls -l /tmp is empty. Which command reveals hidden space usage?

Your score is

The average score is 0%

0%