ENVIRONMENT VARIABLES
---------------------
`LTTNG_ABORT_ON_ERROR`::
    Set to 1 to abort the process after the first error is encountered.

`LTTNG_HOME`::
    Overrides the `$HOME` environment variable. Useful when the user
    running the commands has a non-writable home directory.

`LTTNG_MAN_BIN_PATH`::
    Absolute path to the man pager to use for viewing help information
    about LTTng commands (using man:lttng-help(1) or
    `lttng COMMAND --help`).

`LTTNG_SESSION_CONFIG_XSD_PATH`::
    Path in which the `session.xsd` session configuration XML
    schema may be found.

`LTTNG_SESSIOND_PATH`::
    Full session daemon binary path.
+
The genoption:--sessiond-path option has precedence over this
environment variable.

Note that the man:lttng-create(1) command can spawn an LTTng
session daemon automatically if none is running. See
man:lttng-sessiond(8) for the environment variables influencing
the execution of the session daemon.


FILES
-----
`$LTTNG_HOME/.lttngrc`::
    User LTTng runtime configuration.
+
This is where the per-user current tracing session is stored between
executions of man:lttng(1). The current tracing session can be set
with man:lttng-set-session(1). See man:lttng-create(1) for
more information about tracing sessions.

`$LTTNG_HOME/lttng-traces`::
    Default output directory of LTTng traces. This can be overridden
    with the nloption:--output option of the man:lttng-create(1)
    command.

`$LTTNG_HOME/.lttng`::
    User LTTng runtime and configuration directory.

`$LTTNG_HOME/.lttng/sessions`::
    Default location of saved user tracing sessions (see
    man:lttng-save(1) and man:lttng-load(1)).

+{system_sessions_dir}+::
    System-wide location of saved tracing sessions
    (see man:lttng-save(1) and man:lttng-load(1)).

NOTE: `$LTTNG_HOME` defaults to `$HOME` when not explicitly set.


EXIT STATUS
-----------
*0*::
    Success

*1*::
    Command error

*2*::
    Undefined command

*3*::
    Fatal error

*4*::
    Command warning (something went wrong during the command)


include::common-footer.txt[]
