Solved

question egarding the BASH shell

Posted on 2011-03-01
4
339 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
ID: 35011014
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
ID: 35014983
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
ID: 35025934
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
ID: 35356621
Thanks again Experts.
Good Night.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

828 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