Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to execute user's instructions in shell in linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the knowledge of "how shell executes user's instructions in linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Shell in linux means "shell". Shell is the user interface of the system, which provides an interface between the user and the kernel. It is the interpreter program between the linux kernel and the user, which is equivalent to the "shell" of the operating system. It receives the commands entered by the user and sends it into the kernel to execute.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What does shell mean in linux

Shell is the user interface of the system, which provides an interface for users to interact with the kernel. It receives the command entered by the user and sends it to the kernel for execution. It is the interpreter program between the Linux kernel and the user. Now Linux usually refers to the / bin/bash interpreter which is responsible for translating and communicating user / program instructions to the kernel. Shell is equivalent to the "shell" of the operating system.

[1] the meaning of shell:

First of all, shell means "shell" in English.

It is relative to the kernel, because it is suggested that on the basis of the core, a form of user-oriented expression, such as when we see a ball, we see its shell, not the core.

Shell in Linux refers to a user-oriented command interface, which is represented by an interface that can be entered by the user, and this interface can also feedback the operation information.

[2] the existence form of shell in Linux:

Because Linux is different from Windows,Linux in that the kernel is separated from the interface, it can run separately from the graphical interface, and it can also run a graphical desktop on the basis of the kernel.

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

[3] how to execute user's instructions by shell

Shell has two ways to execute instructions. One way is for the user to write a sh script file containing the shell script in advance, and then use the shell program to execute the script. In this way, we are used to calling it shell programming.

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

Conclusion: shell can be said to be just a bridge between the user and the machine, so that we can operate and interact with the computer through shell, so as to achieve the purpose of making the computer serve us.

This is the end of the content of "how shell executes user's instructions in linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report