Linux Commands Helper
💬 Your AI-powered Linux assistant
fsck Command - Check and Repair Filesystems
The fsck command is used to check and repair Linux filesystems.
Syntax
fsck [options] [filesystem...]
Examples
fsck /dev/sda1
Check and repair /dev/sda1 if necessary.
fsck -A
Check all filesystems listed in /etc/fstab.
Notes
- fsck should not be run on mounted filesystems unless in read-only mode.
- Use with caution, improper use can cause data loss.