# Stop code running

**URL:** <https://forum.hello-robot.com/t/stop-code-running/1458>\
**Category:** Ask\
**Created:** [February 12, 2026, 4:01pm UTC](https://forum.hello-robot.com/t/stop-code-running/1458 "2026-02-12T16:01:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mallak\_Alqaisi](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@Mallak\_Alqaisi](https://forum.hello-robot.com/u/Mallak_Alqaisi)\
**Post date:** [February 12, 2026, 4:01pm UTC](https://forum.hello-robot.com/t/stop-code-running/1458/1 "2026-02-12T16:01:03Z")

</div>

when i want to stop code running in the terminal then click ctrl+c, i just got ^C and the code couldn’t stop ?

---

<div class="post-metadata">

**Author:** ![Jason\_Koubi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/jason_koubi/32/1050_2.png) [@Jason\_Koubi](https://forum.hello-robot.com/u/Jason_Koubi)\
**Post date:** [February 12, 2026, 5:59pm UTC](https://forum.hello-robot.com/t/stop-code-running/1458/2 "2026-02-12T17:59:21Z")

</div>

Hi @Mallak_Alqaisi,

You can use `Ctrl+Z` to suspend a program, you can then stop it using:

```auto
kill %1

```

This sends a normal termination signal and usually shuts it down cleanly.

If that doesn’t work and the process keeps running, you can force it to stop by finding its PID:

```auto
ps aux | grep <program_name>
kill <PID>

```

If it still doesn’t terminate, use:

```auto
kill -9 <PID>

```

`kill -9` forcefully stops the process if it’s not responding.

Also, could you let us know:

- What command are you running?
- Whether this is a Python script, ROS node, etc.?

That will help us better understand why `Ctrl+C` isn’t stopping it.

Best,  
Jason
