Which command can be used to check the integrity of a filesystem?

Prepare for the LPIC-2 Certification Test with our study tools, including flashcards and multiple choice questions with hints and explanations. Get ready to pass your exam!

The command used to check the integrity of a filesystem is fsck, which stands for "filesystem check". This command scans the filesystem for errors and inconsistencies, allowing users to repair issues that might prevent the filesystem from functioning properly. It operates on various types of filesystems, including ext2, ext3, ext4, and many others. Running fsck is essential to maintain filesystem health, especially before mounting a filesystem or when a system experiences unexpected shutdowns or crashes.

Other commands listed, such as checkfs, diskcheck, and fsverify, are not standard or recognized commands in Linux for checking filesystem integrity. While they may suggest similar functions based on their names, they do not perform the actions that fsck is designed for. Thus, fsck is the appropriate and established command choice for filesystem integrity verification.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy