Easy Tutorial
❮ Linux Comm Shapecfg Linux Comm Chroot ❯

Linux fsck Command

Linux Command Manual

The Linux fsck (short for file system check) command is used to check and repair Linux file systems. It can check one or multiple Linux file systems simultaneously.

Syntax

fsck [-sACVRP] [-t fstype] [--] [fsck-options] filesys [...]

Parameters:

Example

To check if the msdos file system at /dev/hda5 is functioning correctly and automatically repair it if there are any anomalies:

fsck -t msdos -a /dev/hda5

Note: This command can be understood better by referring to /etc/fstab.

Linux Command Manual

❮ Linux Comm Shapecfg Linux Comm Chroot ❯