Pris ici: https://openclassrooms.com/courses/reprenez-le-controle-a-l-aide-de-linux/surveiller-l-activite-du-systeme
mais surtout ici: https://forums.framboise314.fr/viewtopic.php?t=4003
Ouvrir la console
-
- Lancer la commande ps -ef | grep blink01.py pour récupérer le PID du programme à arrêter (ici blink01.py)
- Le PID recherché est le premier de la ligne (ici 482)
- root 482 1 0 06:45 ? 00:00:02 python3 blink01.py
- Lancer la commande sudo kill 482. (482 étant ici le PID)