how find out what shell i am currently on
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Shell > how find out what shell i am currently on




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    how find out what shell i am currently on  
Mahurshi Akilla


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-06 10:53 PM

is there a way to find out what shell i am currently on (other than
using "top" and looking up)

Mahurshi Akilla






[ Post a follow-up to this message ]



    Re: how find out what shell i am currently on  
Ed Morton


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-06 10:53 PM

Mahurshi Akilla wrote:

> is there a way to find out what shell i am currently on (other than
> using "top" and looking up)
>
> Mahurshi Akilla
>

echo "$SHELL"

Ed.





[ Post a follow-up to this message ]



    Re: how find out what shell i am currently on  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-06 10:53 PM

On 16 Mar 2006 10:31:31 -0800, Mahurshi Akilla
<mahurshi@gmail.com> wrote:
> is there a way to find out what shell i am currently on (other than
> using "top" and looking up)
>
> Mahurshi Akilla
>
This question has been discussed many times.  I suggest you use Google
to do what it does best.  However, instead of top, try "ps $$".


--
BOFH excuse #355:

Boredom in the Kernel.





[ Post a follow-up to this message ]



    Re: how find out what shell i am currently on  
Barry Margolin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-06 10:53 PM

In article <F7OdnTIG8v6aLITZRVn-ig@comcast.com>,
Ed Morton <morton@lsupcaemnt.com> wrote:

> Mahurshi Akilla wrote:
> 
>
> echo "$SHELL"

Wrong.  That tells you your default shell, not your current shell.

barmar $ ps -p $$
PID  TT  STAT      TIME COMMAND
1587  p1  Ss     0:00.06 /bin/bash --noediting -i
barmar $ ksh
$ echo $SHELL
/bin/bash
$ ps -p $$
PID  TT  STAT      TIME COMMAND
2244  p1  S      0:00.04 ksh
$

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***





[ Post a follow-up to this message ]



    Re: how find out what shell i am currently on  
Michael Paoli


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-17-06 12:50 PM

Mahurshi Akilla wrote:
> is there a way to find out what shell i am currently on (other than
> using "top" and looking up)
GIYF, excellent answers abound, e.g.:
Message-ID: <slrnc1tl6j.42.stephane.chazelas@spam.is.invalid>
http://groups.google.com/group/comp...e&h
l=en






[ Post a follow-up to this message ]



    Re: how find out what shell i am currently on  
Christopher W Aiken


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-17-06 10:54 PM

On 16 Mar 2006 10:31:31 -0800, "Mahurshi Akilla" <mahurshi@gmail.com>
wrote:

>is there a way to find out what shell i am currently on (other than
>using "top" and looking up)
>
>Mahurshi Akilla

ps $$
echo $0

-=[cwa]=-





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:06 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register