Skip to content

jeellabs/devops-daily-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

devops-daily-practice

GFG Practiced Scripts



  1. Conditional Statements | Shell Script

Screenshot 2026-02-19 115227

Screenshot 2026-02-19 115247

============================================================ Screenshot 2026-02-19 115418

Screenshot 2026-02-19 115429

============================================================



2) Looping Statements | Shell Script

Screenshot 2026-02-19 115553

Screenshot 2026-02-19 115603

============================================================ Screenshot 2026-02-19 115653

Screenshot 2026-02-19 115705

============================================================

#For loop

Screenshot 2026-02-19 115811

Screenshot 2026-02-19 115821

============================================================ Screenshot 2026-02-19 115946

Screenshot 2026-02-19 115957

============================================================

#While loop

Screenshot 2026-02-19 120110

Screenshot 2026-02-19 120118

============================================================ Screenshot 2026-02-19 120207

Screenshot 2026-02-19 120215

============================================================



3) Automating Linux System Backups with Bash

Screenshot 2026-02-19 120600

Exam

Q-4

  • Categorize unauthorized packages by risk: Critical (hacking tools, backdoors), High (unauthorized servers/services), Medium (unnecessary software), Low (utilities).
image
  • For packages in the approved list, check if the installed version meets the minimum version requirement. List packages that are outdated.
image
  • Audit script
image

Q-5

  • From disk_usage.txt, which partitions are in CRITICAL (>90%), WARNING (>80%), and OK state? Show usage as a formatted table.
image
  • Write crontab entries: run disk alert every hour, run cleanup weekly at Sunday 3 AM, delete gzipped logs older than 90 days monthly.
image

Q-1

  • Create a full project backup excluding: .git/, uploads/temp/, logs/, *.pyc files. Name: webapp_clean_YYYYMMDD.tar.gz
image image
  • Use grep to scan all config files for sensitive data (strings like password, secret, key, pass). List every file that contains credentials.
image

Q-3

  • Cross-reference server_inventory.csv with failures. Which roles are affected? What is the business impact?
image

Q-2

  • From network_connections.txt, identify suspicious listening ports and outbound connections. Which are legitimate? Which are malicious?
image
  • Incident Report Script
image

Q-6

  • From deploy_history.log, extract all FAILED deployments. List the version, date, and root cause for each.
image

About

Daily DevOps tasks, Linux scripting and practice notes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors