CompTIA Linux+ Practice Test 8

CompTIA Linux+ Practice Test

1 / 10

A process with PID 2456 is consuming excessive CPU. Which command terminates it gracefully, allowing cleanup?

2 / 10

A user accidentally deleted /etc/passwd. You have a backup at /backups/passwd.bak. Which command restores it?

3 / 10

A server’s disk is full, and you need to find the largest files in /var. Which command identifies them?

4 / 10

A script, backup.sh, fails with a "permission denied" error when run by a user. The permissions are rw-r--r--. Which command makes it executable?

5 / 10

A network interface, eth1, isn’t getting an IP address via DHCP after a reboot. Which command restarts the DHCP client to fix this?

6 / 10

A cron job scheduled with crontab -e to run daily at 3 AM isn’t executing. Which command helps diagnose the issue?

7 / 10

A web server’s logs in /var/log/apache2 are growing uncontrollably, risking disk space issues. Which command rotates the logs to manage this?

8 / 10

After a power outage, a Linux server won’t boot, showing filesystem errors. Which command should you run in recovery mode to fix this?

9 / 10

A user reports they can’t write to a file they own, "report.txt," despite having read permission. The current permissions are rw-r--r--. Which command fixes this?

10 / 10

A server’s SSH service stopped working after a configuration change. You suspect the port was altered. Which command checks the port SSH is listening on?

Your score is

The average score is 0%

0%