Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linuxcommandline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bio-IT Workshops
linuxcommandline
Commits
f4c5f540
Commit
f4c5f540
authored
9 years ago
by
Holger Dinkel
Browse files
Options
Downloads
Patches
Plain Diff
BUGFIX: index & codeblock formatting
parent
825be451
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
linux_intermediate/_build/latex/IntermediateLinuxCourse.pdf
+0
-0
0 additions, 0 deletions
linux_intermediate/_build/latex/IntermediateLinuxCourse.pdf
linux_intermediate/commandlinetools.rst
+23
-21
23 additions, 21 deletions
linux_intermediate/commandlinetools.rst
with
23 additions
and
21 deletions
linux_intermediate/_build/latex/IntermediateLinuxCourse.pdf
+
0
−
0
View file @
f4c5f540
No preview for this file type
This diff is collapsed.
Click to expand it.
linux_intermediate/commandlinetools.rst
+
23
−
21
View file @
f4c5f540
...
...
@@ -681,20 +681,21 @@ Job Management
Use ``CTRL+C`` to abort the current process, and ``CTRL+D`` to close the current shell.
If you don't want to abort, you might instead want to use ``CTRL+Z`` to suspend the
current process. You can resume the most recently-suspended job with
:index:`
``fg`` <``fg``
>`, to run it in the 'foreground' of the shell, or
:index:`
``bg`` <``bg``
>` to run it in the 'background'. In the shell, a command running
in the foreground is a job that will prevent the user from executing further commands
until the job has finished. A job running in the background will continue to run while
the user can carry on using the shell prompt to execute other commands. On a related
note: to put a job in the background when you execute it, just add :index:`
``&`` <``&``
>`
If you don't want to abort, you might instead want to use ``CTRL+Z`` to suspend the
current process. You can resume the most recently-suspended job with
:index:`
fg <fg
>`, to run it in the 'foreground' of the shell, or
:index:`
bg <bg
>` to run it in the 'background'. In the shell, a command running
in the foreground is a job that will prevent the user from executing further commands
until the job has finished. A job running in the background will continue to run while
the user can carry on using the shell prompt to execute other commands. On a related
note: to put a job in the background when you execute it, just add :index:`
"&" <&
>`
to the end of the command.
If you have multiple jobs running/suspended at one time, you can view a list of these
processes and their current status with :index:`
``
jobs
`` <``
jobs
``
>`:
If you have multiple jobs running/suspended at one time, you can view a list of these
processes and their current status with :index:`jobs
<
jobs>`:
::
# sleep 250 &
[1] 19697
# sleep 100
...
...
@@ -704,22 +705,23 @@ processes and their current status with :index:```jobs`` <``jobs``>`:
[1]+ Stopped sleep 100
[2]- Running sleep 250 &
As mentioned before, you can restart the most recently-suspended job with ``fg`` or
``bg``. To restart another job in the list, you can refer to it with ``%1`` for job
number ``1`` in the list (``sleep 100`` in the example above), ``%2`` for job ``2``, and
so on. If, instead of restarting a job, you want to kill a suspended process, you can
use the :index:`
``
kill
`` <``
kill
``
>` command and specify the job afterwards:
As mentioned before, you can restart the most recently-suspended job with ``fg`` or
``bg``. To restart another job in the list, you can refer to it with ``%1`` for job
number ``1`` in the list (``sleep 100`` in the example above), ``%2`` for job ``2``, and
so on. If, instead of restarting a job, you want to kill a suspended process, you can
use the :index:`kill
<
kill>` command and specify the job afterwards:
::
# jobs
[1]+ Stopped sleep 100
[2]- Running sleep 250 &
# kill %2
[2]- Terminated: 15 sleep 250
The ``jobs`` list contains details of all running or stopped tasks that were initiated
within the current session. If you try to leave a session with ``exit`` while you still
have a job running or suspended, you will receive a warning message. (Note that this is
one of the rare occasions where the command line interface will ask you if you're sure
before doing something that could be potentially bad for you.) Use ``exit`` a second time
and the session will end, killing any remaining jobs as it does so.
\ No newline at end of file
The ``jobs`` list contains details of all running or stopped tasks that were initiated
within the current session. If you try to leave a session with ``exit`` while you still
have a job running or suspended, you will receive a warning message. (Note that this is
one of the rare occasions where the command line interface will ask you if you're sure
before doing something that could be potentially bad for you.) Use ``exit`` a second time
and the session will end, killing any remaining jobs as it does so.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment