LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-05-2004, 05:18 PM   #1
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Rep: Reputation: 15
how can I change the current shell on the fly?


for example, if I'm running the bash shell, how can I change it?

if I launch another shell from the bash, the new shell is within the other, I would know if I can "change" the shell

How can I check what is the current shell running?

thanks!
 
Old 04-05-2004, 05:21 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
chsh is the command used to change your shell.

man chsh for more details.
 
Old 04-05-2004, 06:00 PM   #3
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Original Poster
Rep: Reputation: 15
using this command I will change my default login shell, so I should re-log, if I want to change shell.

Is it possible change the shell on the fly (without login)?
 
Old 04-05-2004, 07:09 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally posted by Xavius
using this command I will change my default login shell, so I should re-log, if I want to change shell.

Is it possible change the shell on the fly (without login)?
Unfortunately and AFAIK, it will prompt you for the password when changing shells. I don't know of any other way around it. It does this to my knowledge to also initialize any shell scripts or envrionments you have setup, etc.
 
Old 04-06-2004, 03:15 AM   #5
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Original Poster
Rep: Reputation: 15
ok, thanks a lot trickykid!
 
Old 04-06-2004, 08:00 AM   #6
HadroLepton
LQ Newbie
 
Registered: Mar 2004
Location: germany
Posts: 14

Rep: Reputation: 0
is there a way to find out which shell is currently running?
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X.org: How to change screen resolution on-the-fly? Akhran Linux - Newbie 3 10-03-2005 07:02 AM
Change swap space on the fly RajRed Linux - Newbie 2 04-26-2005 04:45 PM
Determining current shell subu_s Programming 11 01-04-2005 07:10 AM
change the priority on the fly alaios Linux - General 1 12-14-2004 10:19 AM
cant change any display settings on the fly. this Linux - Newbie 0 12-14-2001 07:01 AM


All times are GMT -5. The time now is 08:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration