Which Linux command checks and optionally repairs a filesystem?

fsck checks and repairs filesystems.

Start playing free

  1. mount
  2. curl
  3. fsck ✔

Why: fsck is used to check, and optionally repair, one or more Linux filesystems. It can take a device name, a mount point, or a label.

Huh, didn't know that: fsck normally checks filesystems on different physical disks in parallel to save time.

The dad joke
I was going to tell a filesystem joke but it was a bit corrupted.
Like this card?
Play the game

References

Answer: fsck. fsck is used to check, and optionally repair, one or more Linux filesystems. It can take a device name, a mount point, or a label.

  1. fsck(8), Debian manpages manpages.debian.org/bookworm/util-linux/fsck.8.en.html
    fsck - check and repair a Linux filesystem
    Checked 2026-10-11.
  2. fsck(8), Debian manpages manpages.debian.org/bookworm/util-linux/fsck.8.en.html
    filesystems on different physical disk drives in parallel
    Checked 2026-10-11.
  3. chkdsk, Microsoft Learn learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk
    Checks the file system and file system metadata of a volume for logical and physical errors.
    Checked 2026-10-11.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game