How to Terminate a running process via command line?

| | 1 min read

We have all User Interface germs, if there no UI for a particular process. We get into a great trouble. One such program that comes handy in such situation is command prompt. All might have terminated a running process from task manager, may not through command prompt.

TOP Command

Prior to terminating, first make sure which program need to be terminated. Every program have a machine name. To know the all the running processes along with its machine just type,

top

to the command prompt.

Now you see a list of programs running. Select the program to be terminated. Lets say, web browser `Firefox` has to be shut down. For firefox its machine name is `Firefox` itself. All need to be done to kill firefox is,

killall Firefox;

There are many commands in terminal that could let us do many things much better, swifter and secured than UI.

You may also look into other articles related to Linux commands over here.