Linux Common Commands 14 killall and Pkill

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.