lttng-destroy(1): add usage examples
[lttng-tools.git] / doc / man / lttng-destroy.1.txt
index bed0a0053e90eb8a735c59eb39829c1fc2ef115b..7ab13a7f67fc237aacaa5c1823090cdc37ca2784 100644 (file)
@@ -1,6 +1,6 @@
 lttng-destroy(1)
 ================
 lttng-destroy(1)
 ================
-:revdate: 3 May 2021
+:revdate: 17 May 2021
 
 
 NAME
 
 
 NAME
@@ -64,8 +64,10 @@ Then all the subdirectories of the output directory of{nbsp}__TS__
 command exits. In other words, it's safe to read them, modify them, move
 them, or remove then.
 
 command exits. In other words, it's safe to read them, modify them, move
 them, or remove then.
 
+See the <<examples,EXAMPLES>> section below for usage examples.
 
 
-include::common-cmd-options-head.txt[]
+
+include::common-lttng-cmd-options-head.txt[]
 
 
 option:-a, option:--all::
 
 
 option:-a, option:--all::
@@ -79,10 +81,53 @@ option:-n, option:--no-wait::
     destroy is valid before exiting.
 
 
     destroy is valid before exiting.
 
 
-include::common-cmd-help-options.txt[]
+include::common-lttng-cmd-help-options.txt[]
+
+
+include::common-lttng-cmd-after-options.txt[]
+
+
+[[examples]]
+EXAMPLES
+--------
+.Destroy the current tracing session.
+====
+[role="term"]
+----
+$ lttng destroy
+----
+====
+
+.Destroy the current tracing session without waiting for completion.
+====
+See the option:--no-wait option.
+
+[role="term"]
+----
+$ lttng destroy --no-wait
+----
+====
+
+.Destroy a specific tracing session.
+====
+[role="term"]
+----
+$ lttng destroy my-session
+----
+====
+
+.Destroy all tracing sessions.
+====
+See the option:--all option.
+
+[role="term"]
+----
+$ lttng destroy --all
+----
+====
 
 
 
 
-include::common-cmd-footer.txt[]
+include::common-footer.txt[]
 
 
 SEE ALSO
 
 
 SEE ALSO
This page took 0.025062 seconds and 4 git commands to generate.