Posts

Linux Kernel

 Linux Kernel is application which interact with hardware.  Linux Distros like Ubuntu,RHEL,CentOs,Fedora etc are build on top of kernel.  Every distro compile kernel as per their requirement and then build OS on top of kernel. Kernel is made of various modules. So here we will talk about the kernel modules.  * List kernel modules To list kernel modules fire below commands.  "lsmod" To know more about specific kernel module .  "modinfo <module_name>"      Module name can be listed using lsmod command. 

Advance Linux Commands

Image
 There are 4 main component of any Operating Systems. Components are listed below:-- CPU  RAM Disk Network Linux commands for Network monitoring:- 1. iftop 2. ss  3. sar 4. lsof iftop command sudo apt-get install iftop -y [ To install iftop utility ]            After running `sudo iftop` command , Output will be something as below    ss command  This command is similar to netstat command . Just fire `ss` command and below output will be visible on screen                                                         

AWS EC2 commands

                                                                            EC2 Commands  Note Correct VPC ID, AMI ID, Security Group & SubnetId then run below command to spin the instance vpc-503a3e39 subnet-05f9e9373fb8524d4 sg-c80694a0 ami-08e0ca9924195beba (t2.micro) Free Tier AMI code   aws ec2 run-instances --image-id ami-08e0ca9924195beba --count 1 --instance-type t2.micro --key-name SharadKeyPair --security-group-ids  sg-c80694a0 --subnet-id subnet-05f9e9373fb8524d4 aws ec2 describe-instances \ --filters Name=instance-type,Values=t2.micro,t3.micro Name=availability-zone,Values=us-east-2c AWS filter using state running  aws ec2 describe-instances --filters Name=instance-state-name,Values=running AWS filter using state running  aws ec2 describe-instances --...

Ec2 instance using Ansible

Image
                                                                                                                                                                             I am going to run ec2 instance using ansible. We have to setup ansible so that it can call aws module in playbook. There are basic requirement to setup it:-- Python > 2.6 Boto While writing ansible playbook in YAML, Indentation is important part so to resolve indentation, I have installed vim and created file having name ec2run.yaml. Vim detects indentation automatically.  AMAZON.AW...

Starting AWS EC2 Using aws command Line

Image
EC2 instance configuration using aws command line  OS :-- Ubuntu 20.04.2 LTS Required package : aws CLI v2 Step 1: -- Downloading & Installing  package