Alex Rivera | Logout

Stop an application through terminal

Asked 2011-04-15T18:42:56.653
12

I am using Ubuntu and i would like to stop a running application from terminal, more precisely through a script. One way is to get the pid of the process and issue a kill command with the pid of the process. But how do i get the pid of running applications? Or is there any better way to do this?

Edit
Report

1 Answer

1

pkill will probably cover your use case.

answered 2011-04-15T18:48:27.707

Your Answer