command to change the shell


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting command to change the shell
# 1  
Old 10-21-2011
Error command to change the shell

Hi,

I want to change the shellrite now I am in ksh shell , I want to switch to bash shell
I have tried the command ...

Code:
$ chsh -s /bin/bash

but it is showing error ....

Code:
-ksh: chsh: not found [no such file or directory]

# 2  
Old 10-21-2011
Just type the shell name (executable) you want to switch to.

Code:
$ 
$ echo $0
-bash
$ ksh
$ echo $0
ksh
$ csh
$ echo $0
csh


Press ^D or exit to go back to the previous shell ( in the order you invoked)
This User Gave Thanks to clx For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change Shell Command Path

I want to change the path for the command in a shell. I want to make it easier to type in the command when I run the shell. As of now, I have to type in /bin/ls but I want to just type in "ls" instead. I have altered the function below to do this but it's not working. It still must have the full... (1 Reply)
Discussion started by: JustinT2474
1 Replies

2. Shell Programming and Scripting

Change of shell in ubuntu

Hi all, I am facing a situation here.. My default shell is BASH. I have to change my shell from bash to ksh in ubuntu.. I have used chsh -s /bin/ksh. It doesn't work. Is there any way to set or configure it..? Please advice...:confused: (4 Replies)
Discussion started by: jdash.ps
4 Replies

3. UNIX for Dummies Questions & Answers

How to change display in shell

Hi The line for input of my shell currently looks like in the image attached. What I wanted is for the line where I input, it showed in last, the folder I'm in (in the attached images is "Documents") and not my user name "Pedro_Gordo". How do I do this? My OS is Mac OS X 10.6. Thanks in... (7 Replies)
Discussion started by: tirwit
7 Replies

4. UNIX for Advanced & Expert Users

How to change file name using shell ?

Hi.. I have a list of input files as below:- NXUPM.P999309.201002011144 NXUPM.P999409.201002011145 NXUPM.P999509.201002011146 NXUPM.P999609.201002011146 NXUPM.P999682.201002011201 I want to change it as below:- NXUPM.P999309_999408 NXUPM.P999409_999508 NXUPM.P999509_999608... (5 Replies)
Discussion started by: bh_hensem
5 Replies

5. Shell Programming and Scripting

Shell script to change a value

I have a shell script that has following entry. MEM_ARGS="-Xms256m -Xmx512m" export MEM_ARGS if ; then if ; then MEM_DEV_ARGS="-XX:CompileThreshold=8000 -XX:PermSize=48m " export MEM_DEV_ARGS fi fi # Had to have a separate test here... (3 Replies)
Discussion started by: rijeshpp
3 Replies

6. Shell Programming and Scripting

Change default shell

Hi all I am a total newbie at anything to do with shells or any form of scripting Unix/Linux etc. I have been trying to run through a tutorial on scripting but it requires the use of sh. My FreeNAS(FreeBSD) test box running the latest nightly build as an embedded install on CF card has csh as... (14 Replies)
Discussion started by: npaisnel
14 Replies

7. IP Networking

How do I change domain name from shell?

How do I change domain name from shell? And How do I check the domain name from shell? I know how to change hostname but not domain. Please help me. Thank you, (2 Replies)
Discussion started by: lucas
2 Replies

8. UNIX for Dummies Questions & Answers

how to change something is a command?

Using !! or !x we can repeat previous command. If I want to repeat the command with something changed, what do I do? Say, The prev. command cat a.txt | grep "pp" > a.out The new command cat b.txt | grep "pp" > b.out Is there a short way? (4 Replies)
Discussion started by: well_doing
4 Replies

9. UNIX for Dummies Questions & Answers

Change to ksh shell

Hi everyone: Mi default shell is sh, i need to set the TMOUT variable so i need to change the shell to ksh, I change the /etc/profile file as follows, but when i do an echo $0 stll sh been the shell: # more /etc/profile # # (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC. # ALL RIGHTS... (2 Replies)
Discussion started by: irasela
2 Replies

10. Shell Programming and Scripting

How can I change my default shell

hi ; Right now my default shell on our school system is : /bin/ksh but i want to change it to another shell. There is also bash shell installed in the system as : /bin/bash So, how can I change my default shell to bash shell? Or maybe any other shell? (17 Replies)
Discussion started by: milhan
17 Replies
Login or Register to Ask a Question