This command is primarily used to implement file system detection functions
File system detection and repair is recommended when a write operation is terminated abnormally due to an unexpected process termination or a system crash, which may result in corrupted files. It is recommended to go offline and do not continue with read and write operations.
E2fsck for detecting EXT2/3/4 file systems
E2fsck-y answer yes to all questions automatically
-F Force File system detection
-t specifies the type of file system to detect, and fsck is the common interface program for file system detection tools.
Fsck-t EXT4=E2FSCK=FSCK.EXT4
Clean indicates file system is normal
-A automatic repair of all errors is not recommended because the repair file system is mostly to remove incomplete files. The delete operation itself is more risky.
-R Interactive Repair
I haven't officially used this order yet. And I don't know what the effect is.
The Linux file system fsck