Linux view process and kill process

Source: Internet
Author: User

PS AX displays a list of current system processes
PID TTY STAT Time COMMAND
PS auxDisplays a detailed list of current system processes and process users
USER PID%cpu%MEM VSZ RSS TTY STAT START time COMMAND

If the output is too long, the pipe command less
such as PS Ax | Less

To see if a specific process is running, the secondary grep command
For exampleps aux | grep python
Output
PID TTY STAT Time COMMAND
3255 pts/2 T 0:00 grep--color=auto python
3470 pts/20 s+ 0:00 python py16.3.3.tstserv.py
3473 pts/9 s+ 0:00 python py16.3.4.tstcint.py
3478 pts/2 s+ 0:00 grep--color=auto python

The above command returns a list of static system processes, and if you want to view the currently running dynamic list, use the top command
Exit the top command, press Q

Gnome Graphical Interface View
System->administration->system Monitor
This is just like the Windows Process Viewer.

Kill Process:

Kill-9 3437 (PID)

Linux view process and kill process

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.