CompTIA Linux+ V8 Exam Questions and Answers
A new drive was recently added to a Linux system. Using the environment and tokens provided, complete the following tasks:
• Create an appropriate device label.
• Format and create an ext4 file system on the new partition.
The current working directory is /.

Which of the following utilities supports the automation of security compliance and vulnerability management?
A systems administrator needs to enable routing of IP packets between network interfaces. Which of the following kernel parameters should the administrator change?
Which of the following commands should an administrator use to convert a KVM disk file to a different format?
Which of the following commands should an administrator use to see a full hardware inventory of a Linux system?
A systems administrator is preparing a Linux system for application setup. The administrator needs to create an environment variable with a persistent value in one of the user accounts. Which of the following commands should the administrator use for this task?
A Linux systems administrator needs to extract the contents of a file named /home/dev/web.bkp to the /var/www/html/ directory. Which of the following commands should the administrator use?
An administrator is investigating the reason a Linux workstation is not resolving the website The administrator executes some commands and receives the following output:

Which of the following is the most likely cause?
A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?
A Linux administrator tries to install Ansible in a Linux environment. One of the steps is to change the owner and the group of the directory /opt/Ansible and its contents. Which of the following commands will accomplish this task?
A Linux administrator receives reports about MySQL service availability issues. The administrator observes the following information:
uptime -p shows the system has been up for only 2 minutes
journalctl shows messages indicating:mysqld invoked oom-killermysqld cpuset=/ mems_allowed=0
Which of the following explains why the server was offline?
Which of the following best describes journald?
A Linux systems administrator is running an important maintenance task that consumes a large amount of CPU, causing other applications to slow. Which of the following actions should the administrator take to help alleviate the issue?
An administrator wants to search a file named myFile and look for all occurrences of strings containing at least five characters, where characters two and five are i, but character three is not b. Which of the following commands should the administrator execute to get the intended result?
An administrator is trying to terminate a process that is not responding. Which of the following commands should the administrator use in order to force the termination of the process?
Users cannot access an application that is running inside containers. The administrator wants to validate whether the containers are running. Which of the following commands should the administrator use?
A Linux administrator receives reports that an application hosted in a system is not completing tasks in the allocated time. The administrator connects to the system and obtains the following details:

Which of the following actions can the administrator take to help speed up the jobs?
In the echo "profile-$num-$name" line of a shell script, the variable $num seems to not be expanding during execution. Which of the following notations ensures the value is expanded?
Which of the following best describes a use case for playbooks in a Linux system?
An administrator added a new disk to expand the current storage. Which of the following commands should the administrator run first to add the new disk to the LVM?
A DevOps engineer needs to create a local Git repository. Which of the following commands should the engineer use?
An administrator needs to remove the directory /home/user1/data and all of its contents. Which of the following commands should the administrator use?
Which of the following commands should a Linux administrator use to determine the version of a kernel module?
Which of the following most accurately describes a webhook?
An administrator attempts to install updates on a Linux system but receives error messages regarding a specific repository. Which of the following commands should the administrator use to verify that the repository is installed and enabled?
Which of the following best describes the role of initrd?

