---
title: "How to terminate a running process in Linux?"  
description: "How to terminate a running process in Linux?"  
author: "Mukul Goenka"  
published: 2022-04-15  
canonical: https://answers.mindstick.com/qa/96832/how-to-terminate-a-running-process-in-linux  
category: "troubleshooting"  
tags: ["troubleshooting", "linux"]  
reading_time: 2 minutes  

---

# How to terminate a running process in Linux?

How to terminate a running [process](https://yourviews.mindstick.com/view/83832/a-brief-about-machine-learning-life-cycle-process) in [Linux](https://www.mindstick.com/blog/11489/linux-os)?

## Answers

### Answer by Hitesh Vohra

![How to terminate a running process in Linux?](https://answers.mindstick.com/questionanswer/8446f2f3-3ddd-4e0a-95ff-8d6beb3b88e9/images/1e31d39b-a344-4986-9bb2-c5208812ec48.jpeg)\

- When you run an [**application**](https://answers.mindstick.com/qa/96799/difference-between-android-and-other-operating-systems), it starts a background process. You can **kill the process** associated with this application to force it to shut.
- To kill a process, you must first get its process ID (PID). The next section explains how to locate a program's process ID.
- Determine the program's process ID (PID).
- There are numerous methods for determining a process's PID.
- pidof program name>
- To find the name of the software, use the tab completion feature. This command has the advantage of displaying the PID of all processes started by the application.
- Use the following command to stop the process after you know the PID of the target application:
- sudo kill -9 process_id
- If you have many process ids, you can kill them all at once by providing all of the PIDs.\
- sudo kill -9 process_id_1 process_id_2 process_id_3
- You can also use the kill and pidof commands together to kill all of a program's processes.\
- sudo kill -9 `pidof programe_name`
- Naturally, you must replace program name with the name of the programme you wish to terminate.\

\

**Read More: [What are the pros/cons of the Android operating system?](https://answers.mindstick.com/qa/96797/what-are-the-pros-cons-of-the-android-operating-system)**


---

Original Source: https://answers.mindstick.com/qa/96832/how-to-terminate-a-running-process-in-linux

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
