View and delete processes in Linux 1. after 1-2 characters are entered on the LINUX Command platform, pressing the Tab key will automatically complete the following parts (the premise is that you have this thing, for example, when tomcat is installed, enter tomcat to tab ). 2. The ps command is used to view the currently running process. Www.2cto.com grep is a search example: ps-ef | grep java indicates to view the java CMD process information in all processes. ps-aux | grep java-aux shows all States. The command ps3. kill is used to terminate a process. For example: kill-9 [PID]-9 indicates to force the process to stop immediately usually use ps to view the process PID, use the kill command to terminate the process www.2cto.com on the Internet about the two parts of the PS-----------------------------------------------------------------------------------1. ps introduction ps commands are very powerful in the most fundamental circumstances. Command. this command can be used to determine which processes are in the running and running status, 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. 2. the ps command and Its Parameter ps command are usually 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. the syntax format of this command is as follows: ps [Option]-e displays all processes, environment Variable-f full format-h does not show title-l long format-w width output a shows all processes on the terminal, including processes in other user locations. Only processes in the running state are displayed. Process x does not control terminal processes. O [+ |-] k1 [, [+ |-] k2 [,…] The process list is displayed in the multi-level sorting order specified by the shortcut KEYS in short keys, k1, and k2. the default sequence is specified for different ps formats. these default sequence can be overwritten by user-specified. here, the "+" character is optional, and the "-" character is used to reverse the specified key direction. pids lists only process identifiers separated by commas. the process list must be followed by the last option of the command line parameter. spaces cannot be inserted in the middle. for example, ps-f1, 4, 5. the following describes long command line options. These options start with "--": -- sort X [+ |-] key [, [+ |-] key [,…] Select a multiple KEYS from the sort keys segment. the "+" character is optional, because the default direction is in ascending order of numbers or dictionary order. for example, ps-jax-sort = uid,-ppid, + pid. -- help: displays help information. -- version: displays the local version of the command. the sort key is mentioned in the preceding option description. Next, we will further describe the sort key. note that the land use value in the sorting operation is the internal value of the ps application, not only the pseudo value in some output formats. the sorting Key List is shown in Table 4-3. table 4-3 sorting Key List ccmd executable simple name csf-line complete command line fflags Long MODE flag www.2cto.com gpgrp process location group IDGtpgid control tty process group IDjcutime cumulative user time Jcstime cumulative system time kutime user time Kstime system time mmin_flt secondary page Error