Amazon interview question

How do you check running processes and terminate one?