Solved

question egarding the BASH shell

Posted on 2011-03-01
4
345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

630 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