linux-shell 识别当前所使用的shell

echo $SHELL

或者

echo $0
原文地址:https://www.cnblogs.com/shix0909/p/13522906.html