how to show problem il linux or ubuntu

C++
$ cd /var/crash
$ ls
#remove the crash
$ sudo rm/var/crash/*sudo systemctl list-units --failed  //show status failed

Source

Also in C++: