Day-4: Basic Linux Shell Scripting for DevOps Engineers  šŸ§

Day-4: Basic Linux Shell Scripting for DevOps Engineers šŸ§

Ā·

2 min read

Day-4 TASK

ā€¢ What is Shell Scripting?

A shell scripts is a list of commands in a computer program that is run by the Unix shell to execute command.

Shell scripting is scripting in any shell usualy bash.

The need of shell scripting is to do automating tasks, simplifying repetitive tasks, configuring systems and services, creating backup jobs, archiving log files, etc.

ā€¢ What is #!/bin/bash?

BASH (Bourne Again SHell) ā€“ It is the most widely used shell in Linux systems. It is used as default login shell in Linux systems and in macOS. It can also be installed on Windows OS.

The #!/bin/bash known as a shebang, which is define the interpreter to use, each script must begin with the directive for which shell will run them.

#!/bin/bash is a way to specify that the script should be executed by the Bash shell.

you can use ā€œ#!/bin/shā€ instead of ā€œ#!/bin/bashā€ to specify that the script should be executed by the sh shell.

There is most common shell types are bash, ksh, Csh, Zsh.

ā€¢ Write a Shell Script which prints " I will complete 90DaysOfDevops 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 two numbers.

_Wow! You are at the end, if it is helpful please do follow āž• and like to support.šŸ’š

_Thank you for reading. šŸ“–

_Jay

Ā