View and delete processes in Linux

Source: Internet
Author: User
In Linux, view and delete processes 1. View and delete processes ps commands are used to view the currently running processes. Grep searches for ps-ef. | grepjava indicates that CMD is the java process information in all processes. ps-aux | grepjava-aux indicates that kill commands in all states are displayed... in Linux, view and delete processes 1. View and delete processes ps commands are used to view the currently running processes. Grep searches for ps-ef. | grep java indicates that CMD is java process information in all processes. ps-aux | grep java-aux displays all states. The kill command is used to terminate a process. kill-9 [PID]-9 indicates that the process is forced to stop immediately. Generally, you can use ps to view the process PID, kill Command to terminate the process 2. PS command introduction ps command is a very powerful process View command in the most fundamental circumstances. this command can be used to determine which processes are running and running, whether the process is terminated, whether the process is dead, and which processes occupy excessive resources. in short, most of the information can be obtained by executing this command. The command and its parameter ps commands are most often used to monitor the working conditions of background processes, because background processes do not communicate with standard input/output devices such as the screen keyboard, therefore, if you need to detect the situation, you can use the ps command. -E: display all processes, environment variable-f full format-h: no title-l long format-w width output-a: display all processes on the terminal, including other user processes-r only displays running processes-x displays non-control terminal processes
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.