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