Home > Article > Operation and Maintenance > What does Linux Shell mean?
What does Linux Shell mean?
Shell is a program written in C language. It is a bridge for users to use Linux and provides users with An interface for interacting with the kernel. In fact, the Shell is a command interpreter, which interprets the commands entered by the user and sends them to the kernel for execution.
Shell environment
Shell programming is the same as JavaScript and PHP programming. As long as there is a text editor that can write code and a A script interpreter that can interpret and execute will suffice.
Linux has many types of Shells, the common ones are:
Bourne Shell (/usr/bin/sh or /bin/sh)
Bourne Again Shell (/bin/ bash)
C Shell (/usr/bin/csh)
K Shell (/usr/bin/ksh)
Shell for Root (/sbin/sh)
……
This tutorial focuses on Bash, also known as Bourne Again Shell. Because it is easy to use and free, Bash is widely used in daily work. At the same time, Bash is also the default Shell for most Linux systems.
Under normal circumstances, people do not distinguish between Bourne Shell and Bourne Again Shell, so like #!/bin/sh, it can also be changed to #!/bin/bash.
#! Tells the system that the program specified by the subsequent path is the shell program that interprets this script file.
Recommended tutorial: "Linux Operation and Maintenance"
The above is the detailed content of What does Linux Shell mean?. For more information, please follow other related articles on the PHP Chinese website!