Skip to main content

Command Palette

Search for a command to run...

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

Updated
โ€ข4 min read
๐Ÿš€ 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.