python
python -c 'import pty; pty.spawn("/bin/bash")' #python2
python3 -c 'import pty;pty.spawn("/bin/bash")' #python3
stty
获取到shell后,先Ctrl+z放到后台
stty raw -echo
fg
reset
标签:spawn,bin,TTY,shell,stty,切换,pty
From: https://www.cnblogs.com/Cx330Lm/p/16930207.html