Close a program from terminal in Ubuntu


Step 1. Find “process ID” of the program

Each program/application in Ubuntu has a process ID. type the following command to get it’s process ID. In the example, I’m assuming the program is “jdownloader”

ps aux | grep -i jdownloader

Now you’ll get an output like the following image. Look at the process ID (marked by yellow background):

Step 2. Kill it!

Once you’ve grabbed the process ID, you can close it by this command:

kill -9 process-id-of-the-program

So, for our example where process id is 19641, we should issue following command in the terminal:

kill -9 19641

6 thoughts on “Close a program from terminal in Ubuntu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s