Amazon Interview Question

How do you check running processes and terminate one?