๐ Linux Administration and DevOps Basics: A Beginner's Practical Guide

๐ Understanding Horizontal and Vertical Scaling
๐น 1. Horizontal Scaling
Horizontal scaling means adding more servers or instances instead of increasing the resources of a single machine.
๐น 2. Vertical Scaling
Vertical scaling means increasing the resources of an existing server.
โ๏ธ Load Balancing in AWS
A load balancer distributes incoming traffic among multiple servers.
๐ 1. Application Load Balancer (ALB)
โ Features
Distributes web traffic
Supports microservices architecture
Content-based routing
๐ฏ Use Cases
Web applications
REST APIs
Microservices
๐ 2. Network Load Balancer (NLB)
โ Features
High-speed traffic handling
Low latency
Supports UDP protocol
๐ฏ Use Cases
Gaming applications
Real-time applications
๐ก๏ธ 3. Gateway Load Balancer (GWLB)
โ Features
Traffic inspection
Secure networking
Horizontal scaling support
๐ง Creating an Application Load Balancer
๐ Step 1: Open EC2 Dashboard
๐ Step 2: Create Load Balancer
๐ Step 3: Configure Listener
๐ Step 4: Create Target Group
๐ Step 5: Register Targets
๐ Step 6: Create Load Balancer
๐ Git and GitHub Basics
๐ Public Repository
๐ Private Repository
๐ Git Workflow
๐ Creating a Repository on GitHub
๐ Step 1: Create Repository
โ๏ธ Step 2: Configure Repository
๐ Step 3: Create Repository
๐ป Installing Git on Linux
๐ฅ Install Git
sudo apt update
sudo apt install git -y
โ๏ธ Verify Installation
git --version
๐จ Initialize a Git Repository
git init
โ๏ธ Configure Git User Details
git config --global user.name "Your Name"
git config --global user.email "your_email@example.com"
โ๏ธ Uploading a Project to GitHub
โ Add Files
๐ Check Status
๐พ Commit Changes
๐ฟ Create Main Branch
๐ Push Code to GitHub
๐ฅ Cloning a Repository
git clone <repository-url>
๐ฏ Creating a Target Group in AWS
๐ Target Group Configuration
๐ฝ Checking Disk Space in Linux
df -h
๐ฆ Listing Block Devices
lsblk
โ๏ธ Adding Additional Storage in AWS EC2
๐ Step 1: Create Volume
๐ Step 2: Select Availability Zone
๐ Step 3: Attach Volume
๐ ๏ธ Formatting the New Volume
mkfs.ext4 /dev/nvme1n1
๐ Creating a Mount Directory
mkdir /mnt/diskdata
๐ Mounting the Volume
mount /dev/nvme1n1 /mnt/diskdata
๐น Unmounting a Volume in Linux
Unmounting removes the mounted filesystem from the directory structure without deleting data.
Why Unmount?
Safely detach storage devices
Prevent data corruption
Required before removing AWS EBS volumes
Check Mounted Volumes
df -h
Unmount the Volume
umount /dev/nvme1n1
Verify Unmount
df -h
The mounted directory should no longer appear in the output.
๐ฏ Conclusion
Linux administration and DevOps concepts such as scaling, load balancing, Git version control, AWS target groups, and storage management are fundamental skills for cloud engineers and DevOps professionals.
By understanding these concepts and practicing the commands covered in this article, you can build a strong foundation in Linux, AWS, and modern infrastructure management.๐ฏ Conclusion
Linux, AWS, Git, and storage management are essential skills for every DevOps engineer. By understanding scaling strategies, load balancing, version control, and storage administration, you build a strong foundation for managing modern cloud infrastructure efficiently.
โจ Pro Tip: Add a custom banner image, code screenshots, and architecture diagrams to increase engagement and keep readers on your Hashnode article longer. This can significantly improve views and shares on LinkedIn as well.



