The kernel is a computer program that is the core of a computer’s operating system, with complete control over everything in the system.
A shell is special user program which provide an interface to user to use operating system services. Shell accept human readable commands from user and convert them into something which kernel can understand. It is a command language interpreter that execute commands read from input devices such as keyboards or from files. The shell gets started when the user logs in or start the terminal.
A shell script is a computer program designed to be run by a linux shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. Typical operations performed by shell scripts include file manipulation, program execution, and printing text.
Tasks
- Explain in your own words and examples, what is Shell Scripting for DevOps.
- What is
#!/bin/bash?
can we write#!/bin/sh
as well? - Write a Shell Script which prints
I will complete #90DaysOofDevOps challenge
- Write a Shell Script to take user input, input from arguments and print the variables.
- Write an Example of If else in Shell Scripting by comparing 2 numbers
Was it difficult?
- Post about it on LinkedIn and Let me know :)
Article Reference: Click here to read basic Linux Shell Scripting
YouTube Video: EASIEST Shell Scripting Tutorial for DevOps Engineers