Solved

question egarding the BASH shell

Posted on 2011-03-01
4
335 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access Control Entries lost in Windows folders 3 54
Creating 2 files from output with Powershell 5 45
Configure Robocopy to excluding folders 6 56
Shell Script on AIX 7 96
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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…

777 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