Back to articles
My Cloud and DevOps Journey : Day 1
How-ToDevOps

My Cloud and DevOps Journey : Day 1

via Dev.to DevOpsNagesh K

Start From Linux with Shell Scripting for DevOps : Shell scripting is like learning a new language — at first, the syntax feels cryptic, but every small win builds confidence. Over time, I’ve discovered not just commands, but ways of thinking about automation, problem solving, and DevOps workflows. Here’s a reflection on the lessons, challenges, and insights I’ve gathered so far. Early Lessons Learned File and Directory Operations Use find when you need to search across directories. Use [ -f ] when you already know the exact path you want to check. :> filename → resets a file to empty without deleting it. exit 1 → stops the script at the failure point. echo $? → inspects the exit code of the last command. 👉 These basics taught me how to control flow and handle files safely. Conditional Logic [ ] → used for conditions (strings, files, etc.). [[ ]] → more powerful, supports pattern matching. (( )) → used for arithmetic comparisons. Commands can run directly in if without [ ]. /dev/null →

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
7 views

Related Articles