Essential commands for Linux Terminal process management

Source: Internet
Author: User
The top command is a commonly used command to view the usage of system resources and the process that occupies the most system resources. Top displays all processes in the form of columns, occupying the most CPU

The top command is a commonly used command to view the usage of system resources and the process that occupies the most system resources. Top displays all processes in the form of columns. the processes that occupy the most CPU resources are displayed at the top.

The ps command can list running processes.

The pstree command can also display process information. It displays processes in the form of a tree.

The kill command can kill a process based on the process ID. You can use the ps-A, top, or grep command to obtain the process ID. Technically speaking, the kill command can send any signal to a process. You can use kill-KILL or kill-9 to kill stubborn processes.

Given a search keyword, The pgrep command returns all process IDs that match the keyword.

The pkill and killall commands can kill a process based on the process name.

The renice command is used to change the nice value of a process. Nice value indicates the priority of the process. The nice value of-19 is a very high priority. On the contrary, 19 is a very low priority. 0 is the default priority. To run the renice command, you must use the process ID.

Related Article

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.