Join the discussion
Question 1/175
A systems administrator detected corruption in the /data filesystem. Given the following output:

Which of the following commands can the administrator use to best address this issue?

Which of the following commands can the administrator use to best address this issue?
Correct Answer: B
The xfs repair command is used to check and repair an XFS filesystem, which is the type of filesystem used for the /data partition, as shown in the output. The administrator needs to unmount the /data partition before running the xfs repair command on it, and then mount it back after the repair is done. For example: umount
/data; xfs_repair /dev/sdcl; mount /data. The mkfs.xfs command is used to create a new XFS filesystem, which would erase all the data on the partition. The fsck command is used to check and repair other types of filesystems, such as ext4, but not XFS. The pvs command is used to display information about physical volumes in a logical volume manager (LVM) setup, which is not relevant for this issue.
/data; xfs_repair /dev/sdcl; mount /data. The mkfs.xfs command is used to create a new XFS filesystem, which would erase all the data on the partition. The fsck command is used to check and repair other types of filesystems, such as ext4, but not XFS. The pvs command is used to display information about physical volumes in a logical volume manager (LVM) setup, which is not relevant for this issue.
Add Comments
- Other Question (175q)
- Q1. A systems administrator detected corruption in the /data filesystem. Given the following o...
- Q2. A systems administrator created a new Docker image called test. After building the image, ...
- Q3. After connecting to a remote host via SSH, an administrator attempts to run an application...
- Q4. A Linux administrator needs to expose port 9000 for a container to listen during runtime. ...
- Q5. A systems administrator is encountering performance issues. The administrator runs 3 comma...
- Q6. A systems administrator made some changes in the ~/.bashrc file and added an alias command...
- Q7. A user is asking the systems administrator for assistance with writing a script to verify ...
- Q8. A Linux administrator is creating a new sudo profile for the accounting user. Which of the...
- Q9. A Linux systems administrator is trying to execute a particular shell script on a server. ...
- Q10. A systems administrator is creating new user accounts on several Linux machines and wants ...
- Q11. A Linux engineer is setting the sticky bit on a directory called devops with 755 file perm...
- Q12. A database administrator requested the installation of a custom database on one of the ser...
- Q13. A systems administrator received a notification that a system is performing slowly. When r...
- Q14. A systems administrator is troubleshooting a connectivity issue pertaining to access to a ...
- Q15. A Linux administrator needs to connect securely to a remote server in order to install app...
- Q16. The development team created a new branch with code changes that a Linux administrator nee...
- Q17. A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are val...
- Q18. A Linux administrator needs to obtain a list of all volumes that are part of a volume grou...
- Q19. An administrator needs to make some changes in the IaC declaration templates. Which of the...
- Q20. A Linux systems administrator is troubleshooting an I/O latency on a single CPU server. Th...
- Q21. Users report that they cannot access some files located in the /opt/finapp directory after...
- Q22. A Linux administrator would like to use systemd to schedule a job to run every two hours. ...
- Q23. A technician just fixed a few issues in some code and is ready to deploy the code into pro...
- Q24. An administrator wants to execute a long-running script in the terminal while troubleshoot...
- Q25. A Linux engineer receives reports that files created within a certain group are being modi...
- Q26. A systems administrator has been tasked with disabling the nginx service from the environm...
- Q27. In which of the following filesystems are system logs commonly stored?...
- Q28. A cloud engineer needs to remove all dangling images and delete all the images that do not...
- Q29. A Linux engineer has been notified about the possible deletion of logs from the file /opt/...
- Q30. A Linux administrator is providing a new Nginx image from the registry to local cache. Whi...
- Q31. A DevOps engineer needs to download a Git repository from https://git.company.com/admin/pr...
- Q32. Following the migration from a disaster recovery site, a systems administrator wants a ser...
- Q33. The development team created a new branch with code changes that a Linux administrator nee...
- Q34. A development team asks an engineer to guarantee the persistency of journal log files acro...
- Q35. A Linux administrator needs to create a symlink for /usr/local/bin/app-a, which was instal...
- Q36. A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a se...
- Q37. A Linux administrator is troubleshooting SSH connection issues from one of the workstation...
- Q38. A Linux system is failing to boot with the following error: (Exhibit) Which of the followi...
- Q39. The group named support is unable to make changes to the config file. An administrator is ...
- Q40. A systems administrator wants to back up the directory /data and all its contents to /back...
- Q41. A hardened physical Linux system allows regular, unprivileged users to remotely connect to...
- Q42. Some servers in an organization have been compromised. Users are unable to access to the o...
- Q43. A Linux systems administrator is configuring a new filesystem that needs the capability to...
- Q44. A Linux administrator is tasked with moving files in a database server. The administrator ...
- Q45. A Linux system is having issues. Given the following outputs: # dig @192.168.2.2 mycomptia...
- Q46. After installing some RPM packages, a systems administrator discovers the last package tha...
- Q47. A Linux administrator updated the configuration file for the httpd web service. The admini...
- Q48. A systems administrator created a web server for the company and is required to add a tag ...
- Q49. Based on an organization's new cybersecurity policies, an administrator has been instructe...
- Q50. The group owner of the / home/ test directory would like to preserve all group permissions...
- Q51. A DevOps engineer is working on a local copy of a Git repository. The engineer would like ...
- Q52. A developer reported an incident involving the application configuration file /etc/httpd/c...
- Q53. A systems administrator is investigating an issue in which one of the servers is not booti...
- Q54. A systems administrator is implementing a new service task with systems at startup and nee...
- Q55. An administrator attempts to connect to a remote server by running the following command: ...
- Q56. A network administrator issues the dig ww. comptia. org command and receives an NXDOMAIN r...
- Q57. User1 is a member of the accounting group. Members of this group need to be able to execut...
- Q58. A systems administrator intends to use a UI-JID to mount a new partition per-manently on a...
- Q59. A new drive was recently added to a Linux system. Using the environment and tokens provide...
- Q60. An administrator thinks that a package was installed using a snap. Which of the following ...
- Q61. After starting an Apache web server, the administrator receives the following error: Apr 2...
- Q62. A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but r...
- Q63. A DevOps engineer pushed the updated configuration to an existing branch of a remote Git r...
- Q64. A systems administrator configured firewall rules using firewalld. However, after the syst...
- Q65. A systems administrator is tasked with mounting a USB drive on a system. The USB drive has...
- Q66. A systems administrator is notified that the mysqld process stopped unexpectedly. The syst...
- Q67. A Linux administrator has been tasked with installing the most recent versions of packages...
- Q68. A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available fo...
- Q69. A Linux administrator is creating a primary partition on the replacement hard drive for an...
- Q70. A developer is trying to install an application remotely that requires a graphical interfa...
- Q71. An administrator would like to mirror the website files on the primary web server, www1, t...
- Q72. A Linux administrator is configuring network traffic forwarding. Despite having proper ipt...
- Q73. A systems administrator was tasked with assigning the temporary IP address/netmask 192.168...
- Q74. A systems engineer deploys a new application server, but the server cannot communicate wit...
- Q75. A Linux systems administrator needs to persistently enable IPv4 forwarding in one of the L...
- Q76. Which of the following commands will display the operating system?...
- Q77. A cloud engineer needs to launch a container named web-01 in background mode. Which of the...
- Q78. An administrator is running a web server in a container named web, but none of the error o...
- Q79. A Linux administrator deployed a large-scale application service as a containerized pod. T...
- Q80. An administrator would like to securely connect to a server and forward port 8080 on a loc...
- Q81. Which of the following will prevent non-root SSH access to a Linux server?...
- Q82. A Linux administrator needs to transfer a local file named accounts . pdf to a remote / tm...
- Q83. A systems administrator wants to test the route between IP address 10.0.2.15 and IP addres...
- Q84. A systems administrator created a new directory with specific permissions. Given the follo...
- Q85. A Linux administrator has defined a systemd script docker-repository.mount to mount a volu...
- Q86. A developer wants to ensure that all files and folders created inside a shared folder name...
- Q87. A Linux administrator logs in to a system and identifies that an important backup has been...
- Q88. Which of the following technologies can be used as a central repository of Linux users and...
- Q89. An administrator needs to get network information from a group of statically assigned work...
- Q90. A systems administrator is enabling LUKS on a USB storage device with an ext4 filesystem f...
- Q91. The administrator comptia is not able to perform privileged functions on a newly deployed ...
- Q92. Using AD Query, the security gateway connections to the Active Directory Domain Controller...
- Q93. A systems administrator is gathering information about a file type and the contents of a f...
- Q94. After connecting to a remote host via SSH, an administrator attempts to run an application...
- Q95. During a security scan, the password of an SSH key file appeared to be too weak and was cr...
- Q96. Which of the following options describes the purpose of YAML?...
- Q97. A senior administrator has placed a private key for user admin in your home directory. The...
- Q98. The security team has identified a web service that is running with elevated privileges A ...
- Q99. A Linux administrator is configuring a new internal web server fleet. The web servers are ...
- Q100. A new application container was built with an incorrect version number. Which of the follo...
- Q101. A Linux administrator created a virtual clone of a physical server and would like to remov...
- Q102. Which of the following will prevent non-root SSH access to a Linux server?...
- Q103. Users report that connections to a MariaDB service are being closed unexpectedly. A system...
- Q104. An administrator runs ping comptia.org. The result of the command is: ping: comptia.org: N...
- Q105. A Linux administrator was asked to run a container with the httpd server inside. This cont...
- Q106. A systems administrator pressed Ctrl+Z after starting a program using the command line, an...
- Q107. A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access ...
- Q108. Which of the following commands should a technician use to create an administrative accoun...
- Q109. A Linux administrator needs to determine whether a hostname is in the DNS. Which of the fo...
- Q110. A new disk was presented to a server as /dev/ sdd. The systems administrator needs to chec...
- Q111. An application developer received a file with the following content: ##This is a sample Im...
- Q112. An administrator thinks that a package was installed using a snap. Which of the following ...
- Q113. A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packe...
- Q114. After trying to install an RPM package unsuccessfully, a systems administrator verifies th...
- Q115. A systems administrator is installing various software packages using a pack-age manager. ...
- Q116. A systems administrator made some unapproved changes prior to leaving the company. The new...
- Q117. A Linux administrator is implementing a stateful firewall on the Linux server. Which of th...
- Q118. A systems administrator is troubleshooting connectivity issues and trying to find out why ...
- Q119. A systems administrator wants to upgrade /bin/ someapp to a new version, but the administr...
- Q120. One leg of an LVM-mirrored volume failed due to the underlying physical volume, and a syst...
- Q121. The applications team is reporting issues when trying to access the web service hosted in ...
- Q122. A systems administrator wants to check for running containers. Which of the following comm...
- Q123. Users are experiencing high latency when accessing a web application served by a Linux mac...
- Q124. A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server...
- Q125. A file called testfile has both uppercase and lowercase letters: $ cat testfile ABCDEfgH I...
- Q126. At what point is the Internal Certificate Authority (ICA) created?...
- Q127. Which of the following commands is used to configure the default permissions for new files...
- Q128. Which of the following commands is used to tune kernel parameters?...
- Q129. A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on...
- Q130. Which of the following data structures is written in JSON?...
- Q131. A user created the following script file: # ! /bin/bash # FILENAME: /home/user/ script . s...
- Q132. A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of t...
- Q133. A systems administrator created a user cron to run a scheduled database backup cronjob on ...
- Q134. Users are reporting that writes on a system configured with SSD drives have been taking lo...
- Q135. Users have been unable to reach www.comptia.org from a Linux server. A systems administrat...
- Q136. A DevOps engineer is working on a local copy of a Git repository. The engineer would like ...
- Q137. The MySQL database process that was running on a Linux server suddenly stopped, and the pr...
- Q138. A Linux user is trying to execute commands with sudo but is receiving the following error:...
- Q139. A systems engineer is adding a new 1GB XFS filesystem that should be temporarily mounted u...
- Q140. Which of the following files holds the system configuration for journal when running syste...
- Q141. A Linux administrator is scheduling a system job that runs a script to check available dis...
- Q142. A Linux administrator is configuring a two-node cluster and needs to be able to connect th...
- Q143. A Linux administrator has defined a systemd script docker-repository.mount to mount a volu...
- Q144. A Linux administrator needs to remove all local firewall rules on a Linux system. Which of...
- Q145. A Linux administrator has installed a web server, a database server, and a web application...
- Q146. A Linux administrator is troubleshooting the root cause of a high CPU load and average. (E...
- Q147. A developer has been unable to remove a particular data folder that a team no longer uses....
- Q148. A user is attempting to log in to a Linux server that has Kerberos SSO ena-bled. Which of ...
- Q149. A user reported issues when trying to log in to a Linux server. The following outputs were...
- Q150. A junior administrator is trying to set up a passwordless SSH connection to one of the ser...
- Q151. A Linux administrator is troubleshooting a systemd mount unit file that is not working cor...
- Q152. A Linux administrator has logged in to a server for the first time and needs to know which...
- Q153. An administrator would like to list all current containers, regardless of their running st...
- Q154. A senior Linux administrator has created several scripts that will be used to install comm...
- Q155. A Linux system is getting an error indicating the root filesystem is full. Which of the fo...
- Q156. A systems administrator frequently connects to a remote host via SSH and a non-standard po...
- Q157. A Linux administrator needs to list the packages that are currently installed on a server....
- Q158. A Linux administrator created a new file system. Which of the following files must be upda...
- Q159. A new file was added to a main Git repository. An administrator wants to synchronize a loc...
- Q160. A Linux administrator copied a Git repository locally, created a feature branch, and commi...
- Q161. A systems administrator is tasked with creating an Ansible playbook to automate the instal...
- Q162. A Linux administrator needs to create a new cloud.cpio archive containing all the files fr...
- Q163. Users are reporting that a Linux server is responding slowly. A systems administrator trou...
- Q164. A user is unable to log on to a Linux workstation. The systems administrator executes the ...
- Q165. A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the ...
- Q166. An administrator started a long-running process in the foreground that needs to continue w...
- Q167. Due to performance issues on a server, a Linux administrator needs to terminate an unrespo...
- Q168. In order to copy data from another VLAN, a systems administrator wants to temporarily assi...
- Q169. A systems administrator wants to delete app . conf from a Git repository. Which of the fol...
- Q170. Users have been unable to save documents to /home/tmp/temp and have been receiving the fol...
- Q171. An organization's business office needs to collaborate on quarterly reports and asks the s...
- Q172. A systems administrator is checking the system logs. The administrator wants to look at th...
- Q173. A systems administrator identifies multiple processes in a zombie state. Which of the foll...
- Q174. Which of the following enables administrators to configure and enforce MFA on a Linux syst...
- Q175. An administrator transferred a key for SSH authentication to a home directory on a remote ...
