Day 4 Task: Basic Linux Shell Scripting for DevOps Engineers
As a part of my learning of Day 4. I am learning some basic and important part of linux operating system. Linux is multi user and multi tasking operating system. But how it is work? It has two main component Kernel and Shell. The Kernel interact with the machine's hardware, and Shell interact with the users.
What is Kernel?
The Kernel is the core of operating system, a collection of code written in C. It is loaded into memory when system is booted and communicate directly with the hardware. Apart from providing support to user program the Kernel has a great deal of housekeeping to do. It manage the system memory, schedule process, decide their priorities and preform other tasks which you wouldn't like to bother about. It is often called as operating system.
What is Shell?
A compute does not have any inherent capability of translating the commands into action. That requires command interpreter, a job that is handled by outer part of operating system is called as Shell. It is actually the interface between users and the Kernel. Even though there are only one Kernel running on the system, there could be several shell in action one for each user who logged in. There are various types of shell available but below are few well know,
What is Linux Shell Scripting?
User executes command on Shell, and Shell translate the commands into instruction send to Kernel and Kernel perform the actions. Shell has capability to execute multiple commands from a file. If file with multiple command executes one by one is called as script. Script is a similar to program or code in other programming language. So script which can be executed by Shell is called Shell script.
Tasks:
Recommended by LinkedIn
Thanks for reading my blog. Please do let me know your comments and suggestion on this.