pstree command

The pstree command displays the derivation relationship between processes in the form of a tree diagram, and the display effect is more intuitive.

grammar

pstree(options)

Options

-a: Display the complete instructions of each program, including the path, parameters or the identification of the resident service;
-c: do not use abbreviated notation;
-G: Use the column drawing characters of the VT100 terminal;
-h: When listing the dendrogram, specifically mark the program currently being executed;
-H<program identification code>: The effect of this parameter is similar to that of specifying the "-h" parameter, but the specified program is specially marked;
-l: Display the dendrogram in long column format;
-n: Sort by program ID. The default is to sort by program name;
-p: Display program identification code;
-u: display user name;
-U: Use UTF-8 column drawing characters;
-V: Display version information.

Example

Display the process ID and process id of all current processes

pstree -p

Display all detailed information of all processes, and can compress the display when encountering the same process name.

pstree  -a

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325807063&siteId=291194637