pstree . process status tree

A UNIX Command

UNIX Explanation

pstree  shows running processes  as a  tree. The  tree is
rooted at either pid or init if pid is omitted. If a user
name is specified, all  process trees rooted at processes
owned by that user are shown.

Related Source Code Exposition

static void free_buffers()
if (width != NULL) {
width = NULL;
if (more != NULL) {
more = NULL;
capacity = 0;

Source Code Highlight

Frees any buffers allocated by ensure_buffer_capacity.

Featured Image

Related Knowledge

The   fundamental  data   structure  within   the  kernel
controlling all processes is the process structure, which
grows and shrinks dynamically as processes are forked and
finished or killed.

%d bloggers like this: