Friday, October 11, 2013

How to kill a process in Ubuntu

1.Type Top and check all the processes running

2. If you dont' get your process name there.

Then if you know what process you kill.

Use:

(here I want to check any processes with 'jet)

ps -aef | grep mine

You would get something like this:

sony@ubuntu:~$ ps -aef | grep mine
sony      3682     1  0 13:50 ?        00:00:00 /bin/sh /home/sony/Downloads/RubyMine-5.4.3.2.1/bin/rubymine.sh
sony      3747  3682  4 13:50 ?        00:00:10 /usr/lib/jvm/jdk1.7.0_40/bin/java -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=64m -XX:+UseCodeCacheFlushing -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djb.vmOptionsFile=/home/sony/Downloads/RubyMine-5.4.3.2.1/bin/rubymine64.vmoptions -Xbootclasspath/a:/home/sony/Downloads/RubyMine-5.4.3.2.1/bin/../lib/boot.jar -Didea.paths.selector=RubyMine50 -Didea.platform.prefix=Ruby -Didea.no.jre.check=true -Djb.restart.code=88 com.intellij.idea.Main
sony      3900  2426  0 13:53 pts/1    00:00:00 grep --color=auto mine

I want to kill 3682.
'Simply kill 3682

1 comment: