The ps command can be used to find the PID of a process. To use kill, you must know the process ID (PID) of the process you wish to terminate. These commands can be used with any type of process, graphical or command line, foreground or background. Linux provides the kill, pkill, and killall commands to allow you to do just that. “Killing” a process just means “forcing the process to quit.” This may be necessary if the process is refusing to respond. Terminal applications might never return you to the command prompt. ![]() Graphical applications can refuse to respond to mouse clicks. When processes misbehave or malfunction, they can hog too much CPU time, consume your RAM, or enter a tight computational loop and become unresponsive. If the foreground processes are the front of theater staff and the actors, the background processes are the backstage “behind the scenes” team. Background processes are things like services and daemons. They don’t expect input from users nor do they present results or output to them. Background processes are all of the processes that are started automatically and don’t have any interaction with users. ![]() They may be in a terminal window, or they may be a graphical application. ![]() Foreground processes are ones that have been started or launched by a user. Running programs like your web browser, background processes associated with your desktop environment, and Linux system services are all processes.
0 Comments
Leave a Reply. |