Kill all processes with the same name with Killall.
[Email protected]:~/workpalce/git$ ps-aux |grep Vimwang6548 0.3 0.3 17116 7520pts/ -S+ the: - 0:xxVim Awang6549 0.5 0.3 17116 7440pts/4S+ the: - 0:xxVim Bwang6551 0.0 0.0 6860 844pts/1S+ the: - 0:xxgrep--color=Auto Vim[email protected]:~/workpalce/git$ Killall- theVim[email protected]:~/workpalce/git$ Ps-aux |grep Vimwang6554 0.0 0.0 6860 884pts/1S+ the: - 0:xxgrep--color=auto Vim
Kill all processes with the same name with Pkill.
[Email protected]:~/workpalce/git$ ps-aux |grep Vimwang6557 0.5 0.3 17168 7596pts/ -S+ the: About 0:xxVim Thtest.pywang6558 1.0 0.3 17116 7588pts/4S+ the: About 0:xxVim Bwang6560 0.0 0.0 6860 836pts/1r+ the: About 0:xxgrep--color=Auto Vim[email protected]:~/workpalce/git$ Pkill- theVim[email protected]:~/workpalce/git$ Ps-aux |grep Vimwang6563 0.0 0.0 6860 796pts/1S+ the: About 0:xxgrep--color=auto Vim
Linux Common Commands 14 killall and Pkill