[Bash] - the difference between bash and sh of the linux

Here Insert Picture Description

Transfer: https: //zhidao.baidu.com/question/305415121.html

https://zhidao.baidu.com/question/176780008.html

bash is the Bourne Again SHell is linux standard default shell, which is based on Bourne shell, absorb some of the characteristics of the C shell and the Korn shell. bash is fully compatible with the Bourne shell, that is to say with the Bourne shell scripts can be executed without modification in bash.
sh is the Bourne shell is the standard UNIX default shell, it is a concise evaluation of simple compact compact fast and efficient have written AT & T, is a system management shell.

,,,,,,,,,,,,,
sh or execute a script, or switch to this sh bash, the default shell is bash, you can try ah tcsh, csh ah, ksh, zsh or something, look at other shell of what it was like. Of course, linux sh is a link to the bash, sosh and bash functionally no difference.
There is in the implementation of the script is performed by way sh + script name, in fact, most of the time, as long as the permissions are set correctly simple script can be executed directly, without sh command

Published 308 original articles · won praise 61 · views 7710

Guess you like

Origin blog.csdn.net/LawssssCat/article/details/104090425