2 Weeks - Shell Scripting learning plan

𝟐-𝐰𝐞𝐞𝐀 𝑺𝒉𝒆𝒍𝒍 π‘Ίπ’„π’“π’Šπ’‘π’•π’Šπ’π’ˆ π₯𝐞𝐚𝐫𝐧𝐒𝐧𝐠 𝐩π₯𝐚𝐧

Here is, 𝟐-𝐰𝐞𝐞𝐀 Shell Scripting π₯𝐞𝐚𝐫𝐧𝐒𝐧𝐠 𝐩π₯𝐚𝐧, and I'm excited to share 𝐚𝐫𝐭𝐒𝐜π₯𝐞𝐬 on my Medium website!

While running through this program, each day I will cover essential concepts, practical commands, and troubleshooting tips to help you become proficient in it.

Whether you're a beginner or looking to refine your skills, this series will boost your Shell Scripting expertise in no time!

…

πŸ“Œ Week 1: Fundamentals of Shell Scripting
1️⃣ Introduction to Shell Scripting

  • What is Shell Scripting?

  • Different types of Shells (Bash, Zsh, Sh, etc.)

  • Basic Linux Commands for Shell Scripting:

  • - File and directory management (ls, cd, mkdir, rm, etc.)

  • - Viewing and manipulating files (cat, head, tail, cut, grep)

  • - Process management (ps, kill, top)

  • Setting up a shell scripting environment

  • Creating and running a script (.sh file)

  • Understanding shebang (#!/bin/bash)

  • Making scripts executable (chmod +x)

  • Defining variables

  • Environment vs. local variables

  • Using read to take user input

  • Operators in Shell Scripting

  • Arithmetic operators

  • Comparison operators

  • Logical operators

  • if, elif, else

  • case statement

  • for loop

  • while loop

  • until loop

  • Creating and calling functions

  • Using parameters in functions

  • $1, $2, $@, $#

  • getopts for option parsing

  • Understanding exit codes

  • Using set -e, trap

πŸ“Œ Week 2: File Handling & Advanced Scripting

  • File test operators (-f, -d, -e, etc.)

  • Reading from and writing to files

  • Redirection & Piping

  • > and >> operators

  • Using | (pipe) to combine commands

  • Using echo and logger

  • Debugging with set -x

  • Running scripts in the background

  • nohup and jobs

Scheduling Scripts (Cron Jobs & At Command)

  • Creating cron jobs

  • Scheduling one-time jobs with at

1️⃣1️⃣ Working with Arrays and Strings

  • Declaring and using arrays

  • String manipulation (sed, awk, cut)

1️⃣2️⃣ Networking in Shell Scripting

  • Using curl and wget

  • Checking internet connectivity in scripts

1️⃣3️⃣ Automating Tasks with Shell Scripts

  • Creating backup scripts

  • Automating log cleanup

1️⃣4️⃣ Integrating Shell Scripts with Other Tools

  • Calling Python scripts from Shell

  • Using Shell scripts in DevOps (AWS CLI, Docker, Kubernetes)

Reply

or to participate.