>_ IzzyLab

Topic breakdown

Terminating a process means sending it a signal (SIGTERM by default, a polite request to terminate). When there are many identical processes, killing each one by PID manually is inconvenient — this is where pkill helps: it works like pgrep, but instead of printing PIDs it sends the signal to all matching processes at once. The -f flag matches the pattern against the whole command line, not just the name. You can check the result with the same search via pgrep -f — the list should become empty.

What's checked

  1. all sleep 700 terminated
  2. the other sleep is untouched

What it looks like