Week 1 Recap: DevOps Fundamentals to Advanced Linux ๐Ÿš€

Kanav GatheKanav Gathe
2 min read

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

  1. Automation

    • CI/CD pipelines

    • Infrastructure as Code (IaC)

    • Automated testing and monitoring

  2. Scaling

    • Dynamic resource allocation

    • Auto-scaling

    • Container orchestration

  3. 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

  1. DevOps is about culture and automation

  2. Linux command mastery is fundamental

  3. Shell scripting enables automation

  4. Proper permissions are crucial for security

  5. Package and service management are essential skills

#90DaysOfDevOps #DevOps #Linux #Automation #TrainWithShubham

0
Subscribe to my newsletter

Read articles from Kanav Gathe directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Kanav Gathe
Kanav Gathe