Results 1 to 3 of 3
how can i know what shell im in ?...
- 11-19-2006 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 33
what shell im in ?
how can i know what shell im in ?
- 11-19-2006 #2Linux Enthusiast
- Join Date
- Jun 2005
- Posts
- 668
echo $SHELL
- 11-20-2006 #3Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,065
Hi.
If the variable SHELL, has not been set by your current shell, then you could try:
provided your shell interprets $$ as the PID (process ID) for the current process (acceptable in tcsh, bash, zsh). There are exceptions, for example:Code:ps | grep $$
for the rc shellCode:ps | grep $pid
... cheers, drl
Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )


Reply With Quote
