What is Shell in Linux? What's the use?
What does Linux Shell mean?
Shell is a program written in C language. It is a bridge for users to use Linux and provides an interface for users to interact with the kernel. In fact, Shell is a command interpreter that interprets commands entered by users 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 script interpreter that can interpret and execute.
There are many kinds of Shell in Linux, and 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, or Bourne Again Shell, which is widely used in daily work because of its ease of use and free of charge. At the same time, Bash is the default Shell for most Linux systems.
In general, people don't distinguish between Bourne Shell and Bourne Again Shell, so, like #! / bin/sh, it can also be changed to #! / bin/bash.
#! Tell the system that the program specified in the subsequent path is the Shell program that interprets this script file.
These are the details of what Linux Shell means, please pay more attention to other related articles!