Ubuntu tip: How to safely kill hanged processes.

List the process using ps and find desired application, e.g. idle

naved@neo:~$ ps aux|grep idle
naved     7884  0.5  0.2  33556 15316 pts/3    Tl   20:56   0:30 /usr/bin/python /usr/bin/idle -e ens_repo_pyodbc.py
naved     7929  0.6  0.2  34156 16000 pts/3    Tl   21:06   0:30 /usr/bin/python /usr/bin/idle -e dbmethods.py
naved     7933  0.5  0.2  33416 15280 pts/3    Tl   21:08   0:24 /usr/bin/python /usr/bin/idle -e dbtester.py
naved     7998  0.3  0.2  33408 15308 pts/3    Tl   21:45   0:08 /usr/bin/python /usr/bin/idle -e /home/naved/Coding/pyodbc-test.py
naved     8243  0.0  0.0   4384   832 pts/4    S+   22:27   0:00 grep --color=auto idle

Use kill -9 to force kill the process

naved@neo:~$ kill -9 7884

To kill all proceses of an specific application, e.g. idle:

killall -9 idle

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s