echo $SHELL
或者
echo $0
linux-shell 识别当前所使用的shell
原文:https://www.cnblogs.com/shix0909/p/13522906.html