Day 1-Introduction

(DevOps)

·

5 min read

This is the day you have to Take this challenge and start your #90DaysOfDevOps with the #TrainWithShubham Community.

1. Fork this Repo. - Completed

2. Start with a DevOps Roadmap[https://youtu.be/iOE9NTAG35g] - Completed

3. Write a LinkedIn post or a small article about your understanding of DevOps

4. What is DevOps?

Ans :- DevOps is a methodology that promotes collaboration between Development and Operations Team. It is an umbrella term that combines processes, methods, and tools to improve the flow of work between software developers and IT operations professionals. The main goals of DevOps are to increase system reliability, shorten development cycles, and provide faster delivery of features.

The list of DevOps practices includes:

:- Infrastructure as Code (IaC)

:- Continuous Integration

:- Automated Testing

:- Continuous Deployment

:- Release Management

:- App Performance Monitoring

:- Load Testing & Auto-Scale, etc.

5. What is Automation, Scaling, Infrastructure?

Ans :- DevOps automation is the practice or discipline of using specialized software tools and methodologies to automate repetitive and manual tasks throughout the software development lifecycle. Automation helps to eliminate manual errors and reduce the time and effort required to deploy applications or infrastructure changes. Automation can be used to handle many aspects of the software delivery process.

Scaling :-

Scaling in DevOps is characterized as an automation-driven environment where developers or enterprises can adopt DevOps culture and choose the right technologies to scale their business growth.

Infrastructure :-

DevOps infrastructure or Infrastructure Automation under DevOps refers to a concept that revolves around the idea of managing Infrastructure with the help of code. This is done with the help of certain tools or programs which can help to carry out the tasks automatically! Some of the leading IAC tools are listed below.

  • Ansible

  • Terraform

  • SaltStack

  • CloudFormation

  • Azure Resource Manager

  • SpectralOps

6. Why DevOps is Important?

DevOps is important because it allows organizations to rapidly deliver software and services to their customers. It helps organizations reduce costs, improve efficiency, and increase agility, enabling businesses to quickly adapt to changing customer needs and market conditions. By automating processes, DevOps also improves the reliability and quality of applications and services. By enabling collaboration between development and operations teams, it helps teams work together to quickly identify and resolve issues, improving customer satisfaction.

Day-2

Task: Basics Linux command

1. Check your present working directory.

2. List all the files or directories including hidden files.

3. Create a nested directory A/B/C/D/E

Day-3

Task: Basic Linux Commands

1. To view what's written in a file.

The cat command is used to view the content of the file. It reads data from the file and gives their content as output.

Syntax : cat file_name

2. To change the access permissions of files.

Chmod - command used to change the access permissions of a file.

Syntax : chmod permissions file_name

3. To check which commands you have run till now.

history - command is used to check the commands you have run till now.

4. To remove a directory / Folder.

rm command is used to remove directories and files permanently without moving them to the trash directory. The rmdir command removes empty directories.

Syntax : rm folder_name, rmdir folder_name

5. To create a fruits.txt file and to view the content.

6. Add content in devops.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava.

7. To Show only top three fruits from the file.

8. To Show only bottom three fruits from the file.

9. To create another file Colors.txt and to view the content.

10. Add content in Colors.txt (One in each line) - Red, Pink, White, Black, Blue, Orange, Purple, Grey.

11. To find the difference between fruits.txt and Colors.txt file.

Day-4

Task: Basic Linux Shell Scripting for DevOps Engineers

1. 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.

2. What is Shell?

A shell is a special user program that provides an interface for users to use operating system services. Shell accepts human-readable commands from a user and converts them into something which the kernel can understand. It is a command language interpreter that executes commands read from input devices such as keyboards or from files. The shell gets started when the user logs in or start the terminal.

3. 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.

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

#!/bin/bash is called a shebang line which is used to instruct the operating system to use bash as a command interpreter. It consists of a number sign and an exclamation point character (#!), followed by the full path to the interpreter such as /bin/bash.It defines an absolute path /usr/bin/bash to the Bash shell. This is usually the default location of the Bash shell in almost all Unix-based operating systems.

Yes we can write #!/bin/sh as well.
!/bin/sh : It is used to execute the file using sh, which is a Bourne shell, or a compatible shell.

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

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

7. Write an Example of If else in Shell Scripting by comparing 3 numbers.

Thank You for reading this Article.