Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-03-2003, 05:06 AM   #1
LQ Newbie
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
Shell indicator.

Hi all,
How do i know in which sell am i (from the prompt line)?
or which command tells me (from the prompt line) in which
shell am i??
Lots of regards,
Old 03-03-2003, 05:33 AM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
can change your shell, and show what the current is.
Old 03-03-2003, 07:21 AM   #3
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
chsh will get it's information from the SHELL variable. So 'echo $SHELL' should get you the same results.
But I don't know how reliable that value is at all times. If I'm running the ksh and then start a script which uses bash and then echo the $SHELL variable then I still get /bin/ksh instead of /bin/bash. So you would probably have to edit something like the bashrc files to make sure this value is always set properly when a new shell is started.
Another way would be to find out what is running as the current process. Something like:
ls -l /proc/$$/exe


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IntelliMouse Battery Indicator jcook793 Linux - Hardware 0 08-23-2004 08:55 AM
Dial Up Status Indicator claudius753 Linux - Newbie 2 01-31-2004 11:31 PM
Notebook battery indicator PlatinumRik Linux - Software 2 08-12-2003 09:57 PM
wanting new mail indicator airplays Linux - Software 0 12-16-2002 11:42 PM
StarOffice new mail indicator glock19 Linux - General 0 01-08-2002 06:42 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration