The command pstree shows a process tree such as this


I want to show a process tree with some specified attribute for each process (may be stat or pid... - options that you can specify with ps -o)

Is there a way to achieve this behavior with pstree or any other ways?


How about top? Start top then hit V (capital V) to display process tree.

Press f to select the fields to display.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.