Shell Scripting

What is Kernel?
The kernel is the heart of Unix/Linux operating system, it processes and vereything resource management, memory management, file management, system calls scheduling and many more !! It is the manager.
What is Shell Scripting for Devops?
Shell Scripting for DevOps allows you to automate repetitive tasks, manage infrastructure, and deploy applications efficiently.
We can automate manual tasks to save time, and increase efficiency and hence it can also help in avoiding human errors.
What is #!/bin/bash? can we write #!/bin/sh as well?
This first line (#!/bin/bash or #!/bin/sh) has a name. It is known as ‘she-bang‘(shabang). It main motto is to connect the interpretor of the Linux System.
There are many shells, sh, zsh, bash in linux.
What is #!/bin/bash?
Bash means Bourne Again SHell. As the name suggests, it is born born-again shell means it is an exaggerated version and also possesses extra functionalities including shell functionality. This is the commonly use shell while executing the shell scripts.
What is #!/bin/sh?
It is mainly used for system-level programs to execute and it is known for the portability and we can use both depending upon the script requirements.
By default, in my machine /bin/bash shell is running.

Note: many cases, using #!/bin/bash is perfectly fine for scripts designed to run on systems where Bash is the default or widely available. If you want to ensure maximum portability, using #!/bin/sh with POSIX-compliant code is the way to go, as it is more likely to work across different Unix-like systems.
- Write a Shell Script which prints
I will complete #90DaysOofDevOps challenge
Please find the shell script for the above task,

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
In this script, I have tried taking arguments from the user and using the if else statement rather than assigning static variables.

Reference: https://devopscube.com/linux-shell-scripting-for-devops/



