Solved

question egarding the BASH shell

Posted on 2011-03-01
4
328 Views
Last Modified: 2012-05-11
I have a question egarding the BASH shell:

whenever the system default shell is KSH OR CSH in that many case to
complete the commands by using TAB key I type bash and change the
shell (I am not sure though this really change the shell as changing
the system SHELL is diffrent procedure)
My questiion is - does typing bash and executing the commands via bash
shell impacts the system ? Hope you got what I am trying to say ?

Thanks in Advance.
-Raj
0
Comment
Question by:rajsolaris
4 Comments
 
LVL 5

Expert Comment

by:balasundaram_s
Comment Utility
You might want to set the shell prompt editing mode as emacs, like

# set -o emacs

0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 125 total points
Comment Utility
The only impact on the system (and it's a very, very tiny overhead) is to run an additional process.

0
 
LVL 11

Accepted Solution

by:
Pieter Jordaan earned 125 total points
Comment Utility
Hi

The shells make no real difference, except when you start scripting with it, and then it depends on which one you like.
If you prefer bash, then change your login shell to bash.

All built in scripts, and hopefully all your custom scripts start with the line "#!/bin/sh" or similar to run in it the correct shell.
So, you can change your login shell to bash, so that you do not have to switch between the two.

run the command:

vipw
(This will start the vi editor and open the user file.)

Then change the last bit for you user to point to the correct location of bash.

This can be /usr/bin/bash, /bin/bash, /usr/local/bin/bash depending on the OS. Make sure you use the correct path, or it will disable your login.

example from Ubuntu:
root:x:0:0:root:/root:/bin/bash

I hope that helps.
0
 

Author Closing Comment

by:rajsolaris
Comment Utility
Thanks again Experts.
Good Night.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now