Saad Asif Mujawarfundamentalsoflinux.hashnode.dev·Oct 21, 2024Day 4 : Basic Linux Shell Scripting for DevOps EngineerToday, we have the some tasks based on Basic Shell Scripting. Let's solve them together. Task 1 : Explain in your own words and with examples what Shell Scripting means for DevOps ? —> Shell scripting consists of a series of commands executed in a sh...DiscussLinux
Farukh Khanfarukh-khan.hashnode.dev·Oct 20, 2024Mastering Bash Scripting: A Step-by-Step Guide 🚀Bash scripting is a powerful tool for automating tasks and managing systems. Whether you're a sysadmin, developer, or DevOps engineer, understanding Bash scripts is crucial for your toolkit. In this post, we'll walk through several key tasks that hig...DiscussLinux
Rossana Suarezblog.295devops.com·Oct 18, 2024¡Desplega tu aplicación con estilo usando Bash Scripting!Hoy te traigo una guía sobre un poderoso script en Bash que te permitirá automatizar la construcción y despliegue de una aplicación Node.js, ya sea ejecutándola localmente o dentro de un contenedor Docker. Además, te enseñaré algunos tips and tricks ...Discuss·2 likes·308 readsroxsross
shubham Sainishubhamdevplaybook.hashnode.dev·Oct 17, 2024Automate Linux User Management with a Bash Script: Streamline Your Sysadmin TasksIntroduction User account management is a frequent task for any system administrator or DevOps engineer. Whether you're setting up new users, disabling inactive accounts, or just listing all users for an audit, the manual process can get repetitive. ...Discuss·10 likesLinux
Faizan Shaikhfaizanshaikh.hashnode.dev·Oct 16, 2024Day 11 Task: Error Handling in Shell ScriptingError handling is a crucial aspect of writing robust shell scripts. Below are the details for each task you will be covering today, including examples and explanations. Topics to Cover Understanding Exit Status: Each command returns an exit status,...Discuss·40 readsDay 11 Task: Error Handling in Shell Scripting
Imran Shaikhlearnwithimran.hashnode.dev·Oct 15, 2024Directory Backup with RotationThe script will create timestamped backup folders and copy all the files from the specified directory into the backup folder. Additionally, the script will implement a rotation mechanism to keep only the last 3 backups. #!/bin/bash #This script will...Discussbash script
Faizan Shaikhfaizanshaikh.hashnode.dev·Oct 14, 2024Day 10 Task: Log Analyzer and Report GeneratorBash script that accomplishes the task of analyzing log files and generating a daily summary report. The script will: Accept the path to the log file as a command-line argument. Count the number of error messages containing "ERROR" or "Failed". Id...Discuss·75 readsDevops
Faizan Shaikhfaizanshaikh.hashnode.dev·Oct 13, 2024Day 9 Task: Shell Scripting Challenge Directory Backup with RotationThe script will create timestamped backups and retain only the last 3 backups by deleting the older ones. Let’s call it backup_with_rotation.sh: vim backup_with_rotation.sh : #!/bin/bash << readme This is script for backup with 3 day rotation Useag...Discuss·54 readsrotationbackup
Imran Shaikhlearnwithimran.hashnode.dev·Oct 13, 2024Shell Scripting ChallengeThis script will demonstrates practical use of comments, echo, variables, built-in variables, and wildcards in bash scripting. #!/bin/bash #Shell Scripting Challenge #This script will demonstrates practical use of comments, echo, variables, built-in...Discussshell scripting
Payal Sharmapayal-sharma.hashnode.dev·Oct 13, 2024Day 9 Task: Shell Scripting Challenge Directory Backup with RotationToday’s challenge was about creating a simple yet effective solution for backing up files using Bash scripting. I learned how to automate the backup process and add features like keeping only the most recent backups to manage storage efficiently. Her...Discuss·28 readsDevops