What are kernel, shell, and bash?

Source: Internet
Author: User

Introduction to kernel, shell, and bash

First, let's talk about what is kernel:
The kernel is the core of Linux. All user operations are completed by the kernel, but the user does not directly perform all operations on the kernel. Why? Because there is no direct communication between the user and the kernel, and the user cannot directly send commands to the kernel, shell is required at this time, shell translates the commands you gave him into commands that kernel can understand and then uses kernel for operations.

Do you understand? I don't understand. Well, let me give you an example.
You have bought a new house, which is equivalent to a new computer that has nothing to do with. What should you do if you have bought it? You want a worker to clean and manage your house. So you went to the wholesale market and planned to buy a foreign slave to sort out the house for you. There are many slaves in the market, some are windows, some are Linux, and you have bought a European slave named Linux. It is ugly because it is free, however, the slaves of windows are really beautiful and obedient at the beginning, that is, they will not work well after a long time to make your home messy. The slave here is the kernel we want. You use the kernel to manage a new computer, just like you have bought a slave to manage your house. After the slaves bought the dishes, you had to ask him to start his work. As a result, he could not understand the most handsome Chinese in the world, and told him to drag the ground. What should he do if he thought he would wash the dishes? Please translate it. You give the instructions for washing dishes to the translation. The translation tells the instruction to the slaves, and the slaves start to work properly. The translation here is shell. Shell translates your commands into commands that can be understood by the kernel and then runs them by the kernel. Now everyone understands it. If you don't understand it, let's look back.
There are also many translation types, including male and female, Bash, KSh, and CSH, which are sold in the market, it is also relatively easy to use, each with its own characteristics
After this introduction, I believe all the normal friends will understand it? Don't you understand? Hit your head with a piece of tofu. Still don't understand? You will find a wire to wrap yourself up for 20 laps, tighten it, and plug one end of the wire into your power outlet. In this way, within three minutes, you are a mature person. Congratulations!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.