Skip to main content

Posts

Showing posts from January, 2023

Day 04 — Basic Linux Shell Scripting

Explain in your own words and examples, what is Shell Scripting for DevOps. What is #!/bin/bash? can we write #!/bin/sh as well? Write a Shell Script which prints I will complete #90DaysOofDevOps 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 2 numbers Was it difficult? 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 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. 3. What is Linux Shell Scripting? A shell script is a

Day 3 Task: Basic Linux Commands

Day 3 Task: Basic Linux Commands Task: What is the linux command to To view what's written in a file. To change the access permissions of files. To check which commands you have run till now. To remove a directory/ Folder. To create a fruits.txt file and to view the content. Add content in devops.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava. To Show only top three fruits from the file. To Show only bottom three fruits from the file. To create another file Colors.txt and to view the content. Add content in Colors.txt (One in each line) - Red, Pink, White, Black, Blue, Orange, Purple, Grey. To find the difference between fruits.txt and Colors.txt file Solution:- ls - The ls is the list command in Linux. It will show the full list or content of your directory. ls -a - you can see the whole list of files, including the hidden files. ls -l - The ls command will only display the files. ls -d */ - If you only want to display the sub-directories excluding all

Day 2 Task: Basics Linux command

 Day 2 Task: Basics Linux command Task: What is the linux command to  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 Ans:- 1. "pwd" is command to check present working directory on linux machine. 2. "ls -la" is command to list all the files or directories including hidden files. in above command, "-l" is use for list the files and directories in long list format with extra information and "a" is use for list all including hidden files and directory in linux machine. 3. To create a nested directory use following command :- "mkdir -p A/B/C/D/E"  "-p" stands for "no error if existing, make parent directories as needed" showing the nested directory in linux machine use "tree" command.. Listing commands - ls -l --> list the files and directories in long list format with extra information - ls -a --> list all inclu

Devops on AWS

  SDLC Model - Software Development Life Cycle Waterfall Model Agile Model Waterfall Model Disadvantages of Waterfall Model It is difficult to estimate time and cost for each phase of the development process.  Once an application is in the testing stage, it is very difficult to go back and change something that was not well-thought out in the concept stage.  Not a good model for complex and object-oriented projects.  Not suitable for the projects where requirements are at a moderate to high risk of changing. Agile Model Agile development model is also a type of Incremental model. Software is developed in incremental, rapid cycles. This results in small incremental releases with each release building on previous functionality. Each release is thoroughly tested to ensure software quality is maintained. Agile software development method emphasis on iterative, incremental, and evolutionary development. Delay In spite of the Model, still delay? Gap between development team and operations te