Sunday, August 24, 2008

Dealing with Processes using ps

To find a process containing X, use:

$ ps -ef | grep 'X'

To terminate said process, the first column is the PID.

$ sudo kill -9 PID

This can be used to kill user sessions on SSH

No comments: