Check hardware errors in linux

/cat var/log/syslog |grep -iE "error|fail"
dmesg |grep -iE "error|failed"