what is the difference between sh & bash shell?



what is the difference between sh & bash shell?..

Answer / tony

SH refers to Bourne Shell, which is someway the reference Shell to a lot of other Shells, and defintaly to the Bash Shell, which literally is : Bourne Again Shell. By this time and date (2015), Bash is to be preferred over Bourne, and Bourne is supposed to be limited too much ... but, still used a lot. Obviously, in a technical way, there's a lot of interesting commands that work only with Bash, not with Bourne (and presumingly, never the other way round). So, bottom line : Bourne is limited but very compatible, Bash is better but slightly limited. The latter largely depends on environments.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What are the advantages of bash over all other shells?

1 Answers  


Is powershell a language?

0 Answers  


How to take input values from the user?

4 Answers  


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

0 Answers  


What is the equivalent of a file shortcut that we have a window on a linux system?

0 Answers  






In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

0 Answers  


What is the command to find out today's date?

0 Answers  


Is shell a scripting language?

0 Answers  


Explore about environment variables?

0 Answers  


What is another name for a bash shell script that you might see?

0 Answers  


What is the syntax of "grep" command?

4 Answers  


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

0 Answers  


Categories