Check the integrity of a filesystem or repair it. The filesystem should be unmounted at the time the command is run. It is a wrapper that calls
fsck_hfs
,fsck_apfs
,fsck_msdos
,fsck_exfat
, andfsck_udf
as needed.
fsck {{/dev/sda}}
fsck -f {{/dev/sda}}
fsck -fy {{/dev/sda}}
fsck -q {{/dev/sda}}