Processes

To see a list of the processes running on your machine use the ps command. Pipe it into  more

ps -ef | more

To find all the processes running under user des

ps -ef | grep des

Top will provide a real time view of processes running with some summary infomation.

top

If you find a process you would like to terminate, say PID 2056 you can use the kill command.

kill 2056

If this does not terminate the process you can force a kill with the -9 option

kill -9 2056

To find out what PID the terminal widow you are using is type in the terminal window.

echo $$

For example open a terminal  and type sleep 600 and then open another terminal and find this process using grep

sleep 600

ps -ef | grep sleep