Posts

Showing posts from April, 2024

Terraform example script

 main.tf file ==> cat > main.tf <<EOF terraform {   required_providers {     aws = {       source  = "hashicorp/aws"       version = "3.48.0"     }   }   } provider "aws" {   region = "us-west-2" # Oregon } resource "aws_vpc" "web_vpc" {   cidr_block = "192.168.100.0/24"   enable_dns_hostnames = true   tags = {     Name = "Web VPC"   } } resource "aws_subnet" "web_subnet" {   # Use the count meta-parameter to create multiple copies   count             = 2   vpc_id            = "${aws_vpc.web_vpc.id}"   # cidrsubnet function splits a cidr block into subnets   cidr_block        = "${cidrsubnet(var.network_cidr, 1, count.index)}"   # element retrieves a list element at a given index   availability_zone = "${element(var.availability_zones, count.index)}"   tags {     Name = "Web Subnet ${count.index + 1}"   } } resource "aws_instance&q

Linux - Operating System

Image
  What is Linux Operating System e Linux Operating System is a type of operating system that is similar to Unix, and it is built upon the Linux Kernel. The Linux Kernel is like the brain of the operating system because it manages how the computer interacts with its hardware and resources. It makes sure everything works smoothly and efficiently. But the Linux Kernel alone is not enough to make a complete operating system. To create a full and functional system, the Linux Kernel is combined with a collection of software packages and utilities, which are together called Linux distributions. These distributions make the Linux Operating System ready for users to run their applications and perform tasks on their computers securely and effectively. Linux distributions come in different flavors, each tailored to suit the specific needs and preferences of users. What is Linux Linux is a powerful and flexible family of operating systems that are free to use and share. It was created by a person

Windows - Operating System

  Windows Operating System is one of the most popular operating systems and it is used by millions of people all over the world. This OS was developed by  “Microsoft Corporation”  in 1985 and they take more than 90% of the market share from the global market in the IT sector (Computer Operating System). The reason behind the popularity of this OS is that it comes up with a graphical user interface and with preloaded applications which makes the user easy to use and make their experience good. They can easily use any third-party application in this OS without writing any codes and do many types of things which we’ll discuss in later. Now, let’s see what is Windows Operating system? Windows Operating system It is a GUI-based operating system that is developed and marketed by Microsoft Corporation. The main objective of Microsoft company regarding this operating system is to make it an all-rounder and easy-to-use OS that has everything So that any normal user who doesn’t have knowledge ab

Operating System Interview Questions

  Operating System (OS) is Software that facilitates computer software to communicate and operate computer hardware with the computer software. An operating system acts as a GUI between the User and the computer System. In Other words, an OS acts as an intermediary between the user and the computer hardware, managing resources such as memory, processing power, and input/output operations. Here some examples of popular operating systems include Windows, MacOS, Linux, Android etc. In this article, we provide you with the top 100+ OS interview questions with answers that cover everything from the basics of OS architecture to advanced operating systems concepts such as file systems, scheduling algorithms, and multithreading. Whether you are a fresher or an experienced IT professional, this article gives you all the confidence you need to ace your next OS interview. Basics OS Interview Questions 1. What is a process and process table? A process is an instance of a program in execution. For