Ubuntu: How to check why a process stopped?


How can I check why a process was stopped / killed in Ubuntu?

I know using dmesg I can check if a process is killed by OS.

But can some one let me know if the process is killed by a user, how can I know which user killed the process?


The only solution to your question that I can think of (assuming that you know the details of the process) would be to parse the history file of those users that would have the permissions necessary to terminate the process in question for a command that would terminate it.

This would of course require that you have permission to access the users in question .bash_history file. And would also require that the user in question was oblivious as to how to or didn't bother to turn off their own history.

I consider the odds of both of these conditions being met highly unlikely, so perhaps this comment is more accurate in the real world.

However, regardless of the likelihood of both these conditions being met, it is possible.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »