"Programmers are tools for converting caffeine into code."
All articles
Last comments
Przemek Dąbrowski
Świetny program,używam Oto adres do bloga: http://404.g-net.pl/
Shekin
You can install 370 version also
Vitali80
Thank you so much for your help Shekin, you're great
Shekin
1. sudo xed /etc/apt/sources.list.d/ewscott9-snes9x-trusty.list 2. paste there 2 strings deb http://ppa.launchpad.net/ewscott9/snes9x/ubuntu trusty main deb-src http://ppa.launchpad.net/ewscott9/snes9x/ubuntu trusty main 3. add GPG key.
Archive
«    December 2016    »
MonTueWedThuFriSatSun
 1234
567891011
12131415161718
19202122232425
262728293031 
» » How to find and terminate a process in Linux Mint

How to find and terminate a process in Linux Mint

How to find and terminate a process in Linux Mint

In this article we will look at examples of finding unwanted or frozen processes/applications and their completion in Linux Mint. This practice is usually important for system administrators or experienced users.



Sorry for the spelling and phonetic errors in the text.
Owner and main writer of MintGuide.org is not a native English speaker.


To complete the process you need to know its PID. PID is the ID of a particular process. Use the ps command and grep. The command ps lists all active processes, and grep will help in finding the right process.

Just execute:

ps axu

in the end we will see a very large list of running processes. 

mintgui+ 2341 0.1 2.8 768224 28512 ? Sl 14:19 0:00 transmission-gt
mintgui+ 2350 0.0 0.4 25460 4984 ? S 14:19 0:00 /usr/bin/python
mintgui+ 2351 0.0 1.7 391164 18024 ? Sl 14:19 0:00 cinnamon-screen
mintgui+ 2354 0.0 0.0 4448 652 ? S 14:19 0:00 sh -c /usr/lib/
mintgui+ 2355 0.0 3.6 642944 36620 ? Sl 14:19 0:00 /usr/bin/python
mintgui+ 2417 0.0 1.8 217752 18484 ? Sl 14:19 0:00 /usr/bin/python
mintgui+ 2429 10.4 28.3 1211120 288468 ? Sl 14:21 0:48 /usr/lib/firefo
mintgui+ 2557 0.2 2.9 620748 29688 ? Sl 14:21 0:01 gnome-terminal
mintgui+ 2563 0.0 0.1 14828 1828 ? S 14:21 0:00 gnome-pty-helpe
mintgui+ 2564 0.0 0.5 23972 5612 pts/0 Ss 14:21 0:00 bash
root 2739 0.0 0.6 76864 6352 ? Ss 14:23 0:00 /usr/sbin/cupsd
mintgui+ 2816 0.0 0.2 19672 2756 pts/0 R+ 14:28 0:00 ps aux

That's why we will use ps together with grep. Find the PID for the above processes. Run the command:

ps axu | grep transmission

In the end get conclusion:

How to find and terminate a process in Linux MintHow to find and terminate a process in Linux Mint

process PID 2341. Now we will find the Firefox browser. Execute:
ps axu | grep firefox
PID will be listed first:

mintgui+ 2429 7.9 24.9 1211464 254032 ? Sl 14:21 1:01 /usr/lib/firefox/firefox
mintgui+ 2879 0.0 0.2 12968 2256 pts/0 S+ 14:34 0:00 grep --colour=auto firefox

And now that we have the right PID, proceed to the end of the process. Help us the kill command. The command completing the process will be as follows:

kill pid


If you complete the process transmission-gtk, run the command:

kill 2341


The kill command sends a signal to a process. By default, a SIGTERM signal is sent, which indicates to the process that need to be completed. Each signal has it's own number. SIGTERM has the number 15. A list of all signals with their numbers that can send the kill command, can be found by running the command:

kill -l


If the SIGTERM signal wasn't able to stop the process, then you can send the SIGKILL signal, which has the number 9. and does the destruction process always. If, for example, we were unable to complete the processtransmission-gtk signal default, then run the command:

kill -9 2341

Good Luck!!!

Tags: terminal

Related articles

1 comment

  1. hoek
    You can also use htop :) An interactive process viewer for Unix.
    http://hisham.hm/htop/
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent
Login via
Up