shell script to kill a process code example
Example 1: bash kill all terminal
kill $(pgrep bash)
Example 2: how to kill a process with linux
ps ux #list the running proccess
kill -9 <PID>
kill $(pgrep bash)
ps ux #list the running proccess
kill -9 <PID>