Posts

Showing posts from May, 2025

ClouDIY: Bootstrapping Linux Servers – Part 2

ClouDIY: Bootstrapping Linux Servers – Part 2 Advanced tools and services for Linux system administration (based on RH134) 1. Shell Scripting Basics Shell scripts allow you to automate tasks such as backups, user setup, or software installation. They're simply text files containing a sequence of shell commands. #!/bin/bash echo "Welcome" whoami Explanation: The first line tells Linux to use the Bash shell. echo displays text, and whoami prints the current user. Tip: To run the script, first make it executable: chmod +x script.sh ./script.sh  Loops and Conditions Scripts often need to make decisions or repeat actions. You can do this using if statements and loops . If statement: Checks if a file exists before taking action: if [ -f "/etc/passwd" ]; then echo "File exists" fi For loop: Repeats a command for each item in a list: for i in 1 2 3 do echo $i done This loop prints the numbers 1 to 3, one per line. grep, awk,...

ClouDIY: Bootstrapping Linux Servers – Part 1

ClouDIY: Bootstrapping Linux Servers – Part 1 A hands-on guide for DevOps, cloud beginners, and Linux newcomers 1. Why This Blog? If you're new to cloud, DevOps, or managing Linux servers, you’ll quickly find that knowing a few CLI commands isn't enough. You need to know how a Linux server actually works — from accessing the shell, managing files, and users, to securing SSH and understanding logs. This series is based on personal RHCSA prep notes, rewritten for practical real-world use — not just exam prep. 2. Linux?  an open-source operating system powering most cloud servers, containers, and even smartphones. Red Hat Enterprise Linux (RHEL) is one of its most stable and enterprise-friendly distributions. Scenario: You launch a Linux EC2 instance on AWS. There's no GUI. You connect via SSH and land in a terminal . CLI is your only friend. pwd # Show current location ls # List files cd /home # Change directory 3. Understand...