Linux, terminal and Git

Stage 4 · Lesson 4 of 8

Stopping processes: signals and kill

Permissions, processes and packages

You stop a by sending it a , a small message from the system. Pressing sends SIGINT to the program in front of you. kill PID sends SIGTERM, a polite request to finish up and exit.

kill -9 PID sends SIGKILL, which the program cannot catch or ignore. It stops at once, with no chance to save data or tidy up its . pkill -f name sends a signal to processes by name.

Well-written programs handle SIGTERM so they can finish their work cleanly, which matters later for servers and .

Common trapreaching for kill -9 first, which can leave half-written files and stale lock files behind.

A question to check yourself, an AI practice session and 1 cheat sheet entry come when you add the roadmap to your account. Add it

Resources for this stage

Start with· follow one of these

Practise

Keep handy

  • The official README for installing nvm and switching Node versions per project

  • Deep pages on users, groups, permissions and system maintenance for any distribution

Also worth your time

  • See the users, permissions and process management branches of the Linux map

Mark this stage as not done?