2025-03-14 21:59:59 -06:00
|
|
|
# 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`
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Continue from suspension if `suspend` was used in a non-nested shell (run this in a separate terminal):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`pkill -CONT bash`
|
|
|
|
|
|
|
|
|
|
- Force suspension even if this would lock you out of the system:
|
|
|
|
|
|
|
|
|
|
`suspend -f`
|