# man > captree(8)

[_CAPTREE_(8)](https://www.chedong.com/phpMan.php/man/CAPTREE/8/markdown)                             System Manager's Manual                            [_CAPTREE_(8)](https://www.chedong.com/phpMan.php/man/CAPTREE/8/markdown)

## NAME
       captree - display tree of process capabilities

## SYNOPSIS
       **captree **[OPTIONS] [(_pid_|_glob-name_) ...]

## DESCRIPTION
       **captree  **displays  the  capabilities on the mentioned processes indicated by _pid_ or _glob-name_
       value(s) given on the command line. If no _pid_ etc values are supplied, _pid_=1  is  implied.  A
       _pid_ value of 0 displays all the processes known to the kernel.

       The  POSIX.1e capabilities are displayed in double quotes in the [**cap_from_text**(3)](https://www.chedong.com/phpMan.php/man/capfromtext/3/markdown) format. The
       IAB tuple of capabilities is displayed between square brackets in the text  format  described
       in  [**cap_iab**(3)](https://www.chedong.com/phpMan.php/man/capiab/3/markdown).  Note, the IAB tuple text is omitted if it contains empty A and B components.
       This is because the regular POSIX.1e text contains information about the Inheritable flag al‐
       ready. This behavior can be overridden with the **--verbose **command line argument.

       Optional arguments (which must precede the list of pid|glob-name values):

       **--help **Displays usage information and exits. Note, modern Go runtimes exit with status  0  in
              this case, but older runtimes exit with status 2.

### --verbose
              Displays capability sets and IAB tuples even when they are empty, or redundant.

       **--depth_**=n_
              Displays the process tree to a depth of _n_.  Note, the default value for this parameter
              is 0, which implies infinite depth.

       **--colo[u]r_**=false_
              Colo[u]rs  the targeted PIDs, if stdout is a TTY, in red. This option defaults to true
              when running via a TTY. The **--color_**=false_ argument will suppress  this  color.  Piping
              the output into some other program will also suppress the use of colo[u]r.

## EXIT STATUS
       If the supplied target cannot be found the exit status is 1. Should an unrecognized option be
       provided, the exit status is 2. Otherwise, **captree **exits with status 0.

## REPORTING BUGS
       Please report bugs via:

       <https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1090757>

## SEE ALSO
       [**cap_from_text(3)](https://www.chedong.com/phpMan.php/man/capfromtext/3/markdown), [capabilities**(7)](https://www.chedong.com/phpMan.php/man/capabilities/7/markdown), and [**cap_iab**(3)](https://www.chedong.com/phpMan.php/man/capiab/3/markdown).

       There is a longer article about **captree**, which includes some examples, here:

          <https://sites.google.com/site/fullycapable/captree>

## AUTHOR
       Andrew G. Morgan <<morgan@kernel.org>>

                                             2022-04-11                                   [_CAPTREE_(8)](https://www.chedong.com/phpMan.php/man/CAPTREE/8/markdown)
