Final answer:
The /r switch of the chkdsk command-line utility in Windows is used to repair disk errors.
Step-by-step explanation:
The /r switch of the chkdsk command-line utility in Windows is used to repair disk errors. When you run the chkdsk command with the /r switch, it scans the disk for errors and attempts to fix them. It is a useful tool for maintaining the health and integrity of your computer's storage.
The /r switch in the chkdsk command-line utility in Windows is used to perform a thorough scan and locate bad sectors on a disk. It implies a more extensive repair process beyond what the /f switch does. The correct function is:
B) Repair disk errors
When you run chkdsk /r, the utility scans for and attempts to repair disk-related issues, including bad sectors. This helps in maintaining the overall health and integrity of the file system, ensuring stable operation. It does not recover lost files (A), remove system files (C), or restart the computer (D) directly; its primary focus is on identifying and repairing disk errors.