如何判断我使用的是哪个unix shell? [英] How to tell which unix shell I am using?
本文介绍了如何判断我使用的是哪个unix shell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种简单的方法可以告诉我我所使用的是哪种类型的unix shell?
Is there an easy way by which I can tell which type of unix shell I am in?
显示我是否在bash
/csh
/ksh
/tcsh
/zsh
中的命令吗?
A command that shows whether I am in a bash
/ csh
/ ksh
/ tcsh
/ zsh
?
即
whatshellisthis
推荐答案
尝试:
echo $0
这通常适用于各种外壳.
This often works across a range of shells.
这篇关于如何判断我使用的是哪个unix shell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文