stop all processes in a directory linux code example Example: bash kill all terminal kill $(pgrep bash)