SyntaxeLIN-22-S
Cheatsheet processus & services
Voir les processus
ps aux·top/htop·ps aux | grep <nom>·pgrep <nom>
Tuer
kill <PID>(TERM) ·kill -9 <PID>(KILL) ·pkill <nom>·killall <nom>
Services (systemctl)
systemctl status | start | stop | restart | reload <svc>- Au boot :
systemctl enable | disable <svc>·enable --now - Lister :
systemctl list-units --type=service
Logs (journalctl)
journalctl -u <svc>·-f(suivre) ·-xb(dernier boot) ·--since "1 hour ago"
⚠️ Pièges — enable (au boot) ≠ start (maintenant). Essayer kill (TERM) avant kill -9. reload ne coupe pas le service, restart si.
Réf. : man ps · man systemctl · IT-Connect.