Linux command-Terminate process command: Pkill

Source: Internet
Author: User

Killall is to kill all processes, while Pkill kills the process according to the process name, it can achieve the purpose of killing all processes, because the process of the same name in Linux is divided between the main process and the child process.

Pkill-9 httpd Force kill httpd process by name
Pstree-p | grep httpd View Apache process no more
Service httpd start to launch Apache process
Pstree-p | grep httpd View Apache process and then there's the

Pkill also has a more important function is to follow the end user to get out of the user login

W View native logged-in users

Pkill-9 -T tty1 force kick off tty1 Local login user

When you use the W command to view the logged-in user, there is no root user tty1 the login mode.

Login user interface appears on the local login terminal

Linux command-Terminate process command: 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.