shell脚本运行后,让终端不再自动关闭

参考链接

只需要在shell文件末尾加上如下命令即可

exec /bin/bash

猜你喜欢

转载自blog.csdn.net/qq_31918961/article/details/106568841