1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-11 05:45:25 +02:00
tldr/pages/common/suspend.md

17 lines
464 B
Markdown
Raw Normal View History

2024-12-26 20:12:08 +02: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-03-19 18:33:51 +02:00
- Continue from suspension if `suspend` was used in a non-nested shell (run this in a separate terminal):
2024-12-26 20:12:08 +02:00
`pkill -CONT bash`
- Force suspension even if this would lock you out of the system:
`suspend -f`