只需要在shell文件末尾加上如下命令即可 exec /bin/bash 本文转载自:https://blog.csdn.net/qq_31918961/article/details/106568841