Home  >  Article  >  Operation and Maintenance  >  what is linux bash?

what is linux bash?

藏色散人
藏色散人Original
2019-05-17 16:25:578130browse

Bash (GNU Bourne-Again Shell) is the default shell for many Linux distributions. In fact, there are many shells used in traditional UNIX, such as tcsh, csh, ash, bsh, ksh, etc. The Shell Scripts are generally similar. Once you learn one shell, you will quickly get started with other shells. Most of the time, a Shell Script can usually be used on many kinds of Shells.

what is linux bash?

bash is the default shell on most Linux systems and Mac OS X. It can run on most Unix-like operating systems. On top of it, it has even been ported to the Cygwin system on Microsoft Windows to implement the POSIX virtual interface of Windows. In addition, it has also been ported to MS-DOS by the DJGPP project.

The command syntax of bash is a superset of the Bourne shell command syntax. Most of the large number of Bourne shell scripts can be executed in bash without modification. Only scripts that use Bourne's special variables or built-in commands need to be modified.

Many of bash’s command syntax comes from Korn shell (ksh) and C shell (csh), such as command line editing, command history, directory stack, $RANDOM and $PPID variables, and POSIX command substitution syntax: $ (...). As an interactive shell, pressing the TAB key can automatically complete the partially entered program name, file name, variable name, etc.

The above is the detailed content of what is linux bash?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn