A bit more details, what I'm looking for is some kind of ^Z for sudo shells.For instance when running a long command I can hit ^Z to suspend the command or when I do ~^Z in ssh after hitting Enter. Then I can simply do fg and get my long command/ssh session running again.
Is there an easy way to background a sudo shell?
shell;sudo;background process
You can use suspend (as long as you invoked the shell with sudo -s instead of sudo -i):anthony@Haruhi:~$ sudo -s[sudo] password for anthony: root@Haruhi:~# suspend[1]+  Stopped                 sudo -santhony@Haruhi:~$ If you invoked it with sudo -i, you can use suspend -f to force it to suspend anyway; note that you need to be careful there (as if you did that to an actual login shell, it could be pretty difficult to resume it).