I know you're supposed to shut down the Pi (and other boards) with "sudo poweroff" before unplugging them. (that is the right command, right ?)
I forgot to do this this morning when I replugged several things, so at some point both my precious RPi servers have gotten plugged, unplugged in the middle of bootup, plugged again, a few times ...

They seem to work ok but I'm concerned about lurking issues and long-term stability, especially since I intend to leave these servers running remotely with no physical access for months.
Is there any way I can check for file system / SD card corruption ? If not a DietPi-specific utility, some general Linux SSH commands perhaps ?
Thank you for your help.