killing all processes in linux code example Example 1: bash kill all terminal kill $(pgrep bash) Example 2: kill all process killall node -9