90DaysOfDevOps

90DaysOfDevOps

Task: Basic Linux Shell Scripting for DevOps Engineers.

  • What is Kernel: The kernel is a computer program that is the core of a computer’s operating system, with complete control over everything in the system.
  • What is Shell:?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.
  • What is Linux Shell Scripting: ?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.


In a simple words with examples, what is Shell Scripting for DevOps.

It is a computer program which help us to run the bulk of command in a sequence with proper time gaping in between the commands. There is no want to run a single commands again and again we just want to write a script of required command then only want to run that script only.


What is `#!/bin/bash?` can we write `#!/bin/sh` as well?

bash and sh both are the shells of operating system. sh is an original shell and bash is improvement of the sh with more features and syntax. But I personally recommend you to use bash instead of sh.


Write a Shell Script which prints `I will complete #90DaysOofDevOps challenge`

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

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

Here, -p allows you to specify a prompt, and -s, which makes the input silent like to hide password.

No alt text provided for this image
No alt text provided for this image

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

No alt text provided for this image
No alt text provided for this image

Conclusion

In this article, we just learn basics of shell script and also how can we access arguments passed through the command line.

No alt text provided for this image

Thank you?for giving your precious time for reading this blog/article and also follow?Vishu Goyal?for more such blogs/article and also thanks a lot for keeping your calm and reading till end. I hope this article helped you :) Happy coding!

You can also mail me:?[email protected]


HashTags:

#90daysofdevops?#devops?#cloud?#aws?#awscloud?#awscommunity?#docker?#linux?#kubernetes?#k8s?#ansible?#grafana?#terraform?#github?#opensource?#90days?#challenge?#learning?#freelance?#linkedin?#trainwithshubham?#90dayschallenge?#devopscommunity?#cloudproviders?#freelance?#linkedin

Shubham Londhe

Helping Students and Professionals build their Careers | Experience in DevOps | Python | AWS | PySpark | SQL | NoSQL | 1000+ Learners placed

2 年

good work

要查看或添加评论,请登录

Vishu G.的更多文章

  • AWS Solutions Architect Associate

    AWS Solutions Architect Associate

    Becoming an AWS Solutions Architect Associate is an exciting and rewarding journey. As a Solutions Architect, you'll…

    6 条评论
  • 90DaysOfDevOps

    90DaysOfDevOps

    Advanced Linux Shell Scripting for DevOps Engineers with User management If you noticed that there are total 90 sub…

  • Let's Play with RedHat 9

    Let's Play with RedHat 9

    Basic Linux Commands: To view what's written in a file. There are several ways to view the content of the file what is…

    2 条评论
  • 90 Days Of DevOps

    90 Days Of DevOps

    What is DevOps The DevOps is a combination of two words i.e.

    3 条评论
  • JAVASCRIPT WORKSHOP

    JAVASCRIPT WORKSHOP

    Hello #Connections ???♂? Recently, I had attended a 8+ hours workshop for two days on #javaScript organized by…

社区洞察

其他会员也浏览了