Week 1 Recap: DevOps Fundamentals to Advanced Linux ๐
Day 1: Introduction to DevOps
Core Concepts
DevOps bridges Development and Operations teams
Focuses on faster, reliable software delivery
Emphasizes automation and continuous feedback
Key Components
Automation
CI/CD pipelines
Infrastructure as Code (IaC)
Automated testing and monitoring
Scaling
Dynamic resource allocation
Auto-scaling
Container orchestration
Infrastructure
Cloud platforms (AWS, Azure, GCP)
Containerization (Docker)
Microservices architecture
Day 2-3: Linux Command Mastery
Essential Commands
# Directory Navigation
pwd # Print working directory
cd # Change directory
mkdir # Create directory
# File Operations
ls -l # Detailed list
ls -a # Show hidden files
cat -n # View with line numbers
chmod # Change permissions
Advanced Operations
# File Management
head -n # Show first n lines
tail -n # Show last n lines
grep # Find patterns
wc # Count lines/words
sort # Sort content
Day 4-5: Shell Scripting
Key Concepts
Shebang usage (
#!/bin/bash
vs#!/bin/sh
)Script structure and validation
Error handling and logging
Cron job scheduling
Example Scripts
# Directory Creation
#!/bin/bash
for i in {1..5}; do
mkdir -p "dir$i"
echo "Created directory $i"
done
# Backup Script
#!/bin/bash
backup_dir="/backup"
source_dir="/source"
date=$(date +%Y%m%d)
tar -czf "$backup_dir/backup_$date.tar.gz" "$source_dir"
Day 6: Linux Permissions
Permission Management
# Basic Permission Commands
chmod 644 filename
chown user:group filename
# ACL Management
getfacl filename
setfacl -m u:user:rwx filename
Day 7: Package Management & Services
Package Installation
# Docker Installation
sudo apt update
sudo apt install docker.io
# Jenkins Installation
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/" | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt update
sudo apt install jenkins
Service Management
# Common systemctl commands
systemctl status docker
systemctl start jenkins
systemctl enable docker
journalctl -u jenkins
Key Takeaways
DevOps is about culture and automation
Linux command mastery is fundamental
Shell scripting enables automation
Proper permissions are crucial for security
Package and service management are essential skills
#90DaysOfDevOps #DevOps #Linux #Automation #TrainWithShubham
Subscribe to my newsletter
Read articles from Kanav Gathe directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by