HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

suspend — Suspend the execution of the current shell. More information: <https://www.gnu.org/software/bash/man

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecurrentcommandclisuspendexecution

Problem

How to use the suspend command: Suspend the execution of the current shell. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-suspend>.

Solution

suspend — Suspend the execution of the current shell. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-suspend>.

Suspend the current shell (useful for when you are in nested shells like su):
{{bash}} <Enter> suspend


Continue from suspension if suspend was used in a non-nested shell (run this in a separate terminal):
pkill -CONT {{bash}}


Force suspension even if this would lock you out of the system:
suspend -f

Code Snippets

Suspend the current shell (useful for when you are in nested shells like `su`)

{{bash}} <Enter> suspend

Continue from suspension if `suspend` was used in a non-nested shell (run this in a separate terminal)

pkill -CONT {{bash}}

Force suspension even if this would lock you out of the system

suspend -f

Context

tldr-pages: common/suspend

Revisions (0)

No revisions yet.