From 1b121bd9a63bb5e127a3e5bd1968372a4020d6f7 Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 6 Jul 2020 20:48:13 +0800 Subject: [PATCH] docs/jobs: add example output and remove spurious header --- doc_src/cmds/jobs.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc_src/cmds/jobs.rst b/doc_src/cmds/jobs.rst index 9a987c804..b072377db 100644 --- a/doc_src/cmds/jobs.rst +++ b/doc_src/cmds/jobs.rst @@ -34,11 +34,13 @@ If the output of ``jobs`` is redirected or if it is part of a command substituti The exit status of ``jobs`` is ``0`` if there are running background jobs and ``1`` otherwise. -no output. ----------- - - Example ------- -``jobs`` outputs a summary of the current jobs. +``jobs`` outputs a summary of the current jobs, such as two long-running tasks in this example: + +.. code-block:: none + + Job Group State Command + 2 26012 running nc -l 55232 < /dev/random & + 1 26011 running python tests/test_11.py &