"Evolution is God's way of issuing upgrades."
All articles
Last comments
In mate, when I try to add background image in my selection, the new images are always lost when I reopen the mate backgroung setting.
But if you don't register, you can't access to playlist features
What is your system version?
cant install it says: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of
Works on Linux Mint 18 cinnamon installed on my laptop.
«    October 2016    »
» » 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.
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
Login via