Skip to main content

Command Palette

Search for a command to run...

Day 4 - Basic Linux Shell Scripting for DevOps Engineers

Updated
•2 min read•View as Markdown
Day 4 - Basic Linux Shell Scripting for DevOps Engineers
G

👋 Hey there! I'm Gayatri, I have completed a degree in Computer Engineering. I am extensively involved in the fields of DevOps and Cloud computing.

➡What is Kernel?

The kernel is the part of the operating system that helps software and hardware work together.

➡What is Shell?

A shell is a program that helps you use the computer by typing commands. It acts as a middleman between you and the operating system.

➡What is Linux Shell Scripting?

Linux shell scripting means writing a set of commands in a file so the computer can run them one by one.

So it can do tasks automatically without you doing everything by hand.

➡Day 4 - Task

  1. Explain in your own words and examples, what is Shell Scripting for DevOps.

    Linux shell scripting means writing a set of commands in a file so the computer can run them one by one. So it can do tasks automatically without you doing everything by hand.

  2. What is#!/bin/bash?can we write#!/bin/shas well?

    The line #!/bin/bash or #!/bin/sh at the very top of a script is called the shebang line (also known as hashbang).

    /bin/bash means: Use the bash shell to run this script. Bash is the most commonly used shell in Linux.

    /bin/sh means: Use the default shell on this system to run the script. This could be sh, bash, or another shell depending on the system.

  3. Write a Shell Script which printsI will complete #90DaysOofDevOps challenge

  1. Write a Shell Script to take user input, input from arguments, and print the variables.

  1. Write an Example of If else in Shell Scripting by comparing 2 numbers.

Thank you for reading! :)

More from this blog

Untitled Publication

43 posts