what is shell in linux

王林
王林Original
2019-12-04 13:19:052979browse

what is shell in linux

The meaning of shell

First of all, the English meaning of shell is "shell";

It is relative to the kernel Yes, because it is based on the core and is a form of expression for users. For example, when we see a ball, what we see is its shell, not the core.

The shell in Linux refers to a user-oriented command interface, which is expressed as an interface that can be entered by the user. This interface can also feed back running information.

linux video tutorial: linux video tutorial

The existence form of shell in Linux:

Because Linux is different from Windows , Linux separates the kernel from the interface. It can run independently from the graphical interface. It can also run a graphical desktop based on the kernel.

In this way, in the Linux system, there are two shell manifestations, one is the shell in the terminal operating environment without a graphical interface, and the other is the Windows-like MS running on the desktop. -DOS running window, the former is generally referred to as the terminal, and the latter is generally directly called the shell.

How shell executes user instructions

Shell has two ways to execute instructions. The first method is for the user to write an sh script file in advance, which contains the shell script. , and then use the shell program to execute the script. This method is commonly called shell programming.

The second form is that the user directly executes the shell command on the shell interface. Due to the shell interface, everyone is accustomed to writing line by line, and rarely writes a complete set of programs to execute together, so it is also Called the command line.

Summary

The shell can be said to be just a bridge built between the user and the machine, allowing us to operate and interact with the computer through the shell, so as to achieve Let computers serve our purposes.

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of what is shell in linux. 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