Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

added and tested pstree.md to basics #692

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions _commands/basics/pstree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
---

pstree
-------

pstree is a command the prints the entire process
heirarchy as a tree

~~~ bash
pstree

example output:
init--parent_ps -- running_ps
|-- dif_prnt -- another_run_ps
~~~

<!--more-->

### Useful Options / Examples
You can also specify a process id to see all of its children
or you an specify a user to see all of the processes of that user

#### Example command
pstree pid

#### Example Output
ps--children--children

#### Example command
pstree username

#### Example Output
prsA -- subprocess -- etc

prsB -- subprocess

prsC -- subprocess
|- another one

etc