LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-03-2003, 04:06 AM   #1
ultimator
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,
Ultimator.
 
Old 03-03-2003, 04:33 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
chsh
can change your shell, and show what the current is.
 
Old 03-03-2003, 06:21 AM   #3
Mik
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
 
  


Reply



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 07:55 AM
Dial Up Status Indicator claudius753 Linux - Newbie 2 01-31-2004 10:31 PM
Notebook battery indicator PlatinumRik Linux - Software 2 08-12-2003 08:57 PM
wanting new mail indicator airplays Linux - Software 0 12-16-2002 10:42 PM
StarOffice new mail indicator glock19 Linux - General 0 01-08-2002 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:34 PM.

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