Name
suspend
The built-in command suspend
will suspend the current shell if possible, as if you’d typed ^Z
to the shell itself. For instance, if you’ve run the su
command and want to return to your original shell:
$ whoami smith $ su -l Password: ******* # whoami root # suspend [1]+ Stopped su $ whoami smith
Get Linux Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.