Spawning Shells
Methods for invoking a shell.
bash
/bin/bash -ish
/bin/sh -iecho
echo 'os.system('/bin/bash')'perl
perl -e 'exec "/bin/sh";'python
$ python -c 'import pty;pty.spawn("/bin/sh")'vi
$ :!bashUpgrade from shell to bash
SHELL=/bin/bash script -q /dev/nullFully Interactive TTY
Background the current remote shell (^Z), update the local terminal line settings with stty2 and bring the remote shell back.
stty raw -echo && fgLast updated