Advice 1: How to know the pid of the process

When the computer starts a process, it gets a pid that is the ID of the process. Sometimes you need to know the ID. Maybe you for some reason need to disable a running process, for example, if it interferes with the removal. There are several ways to know the pid. The simplest way to do this using task Manager and command prompt.
How to know the pid of the process
You will need
  • - a computer running Windows (XP, Windows 7).
Press ctrl+alt+del. If your operating system is Windows XP, the task Manager will appear immediately, if Windows 7 - a window will appear where you can select it.
In task Manager select the Processes tab. Now here click on "View". An additional window will appear. In this select "Choose columns." A dialog box will appear, where the top item will be called "ID process (pid)". In front of him select. Save the settings by pressing OK.
Then in device Manager click on the Processes tab where you will see the string "ID process". Look at the name of the processwhose ID you need to discover and view its value.
Now you will learn how to read this value from the command line of the operating system. Click "start" and then click "All programs." Select "Standard program". Here, find the menu item "Command prompt" and run it. Type tasklist and press Enter. After activating this command in the command prompt window will appear listing all the currently active processes. After the name of each of them will be written the ID.
If you need to quickly complete the process, then it can be done. After you learn the ID of the process, in command prompt type taskkill /pid 0000. Instead of zeroes type the number ID of the processthat is required "to carry". After that, the system will send a signal to its completion, and it will be off.
At the end of the process, be careful. It is possible to inadvertently disable the active process, which is required for the correct operation of the operating system.

Advice 2 : How to view all processes in Linux

Linux operating systems have a number of tools enabling the management of running processes. To view a list of running applications by means of the system, and with the help of special applet.
How to view all processes in Linux

Browsing through "Terminal"

To view the running processes in the system, press the Ctrl and T on the keyboard. You can also call the terminal through the shortcut on the desktop (if available) or the menu "Applications" in the upper part of the window Manager Gnome. To access the menu using KDE, use the bottom panel of the system, and similar "Programs". In the appeared window using the keyboard, type the query to ps and press Enter. Before you will see a list of processes running in the current session of the system. If you are working as root ("Administrator"), type this command sudo ps –ax to view all of the executable programs.

Using ps, you can only view currently running tasks. Alternative top command allows you to monitor the processes that are currently running in the system, and a memory area which is occupied by other users of the network or computer. In this top produces a display of real-time tasks that allow you to monitor the activity of running programs.

The removal processes is performed by calling the kill command. The list of available settings for application control can be accessed by typing kill –l. To remove a specific task from memory, you must specify the ID of the command (e.g., kill, top). For sversheniya tree of processes use the query killall (for example, killall vmware).

Control via a graphical interface

In repositories or Synaptic "package Manager", you can download graphic programs that allow you to manage running processes. To view the task list, you can select the YaST tool, which also allows you to change some system settings. To manage the applications in KDE you can use KDE System Guard.

In the GUI there is also GNOME applet "System monitor". To activate it, right click on the upper or lower pane, and then click "Add applet" - "System monitor" ("add to panel" - "Applets" - "System monitor"). Then click on the corresponding icon with the left mouse button. You will see a list of processes. View all running apps by choosing menu "View" - "All processes". To view or delete the running task in the appropriate line, click the right mouse button and select "Finish". If necessary, you may need to enter the root password, if you want to stop execution of the program of another user.
Is the advice useful?