/sbin/fsck
Filesystem consistency check and interactive repair. Journaling file systems avoid the need to run fsck. macOS Journaling is on by default in macOS 10.3 and above.