Variables in Shell Scripting: Key Concepts and Best Practices

Day 11 of My DevOps Journey 🚀 Today I learned about Variables in Shell Scripting 🧠💻 🔹 What I learned: ✔️ Variables are used to store values (key-value format) ✔️ No data types in shell scripting ✔️ System variables → SHELL, USER, PATH ✔️ User-defined variables for custom use 🔹 Hands-on: ✔️ Created variables using export ✔️ Accessed values using echo ✔️ Removed variables using unset 🔹 Important Concepts: ✔️ Temporary vs Permanent variables ✔️ Used .bashrc to store variables permanently ✔️ Learned how to set variables for all users 🔹 Rules: ✔️ No numbers at the start ✔️ Avoid special characters (-, @, #) ✔️ Prefer uppercase variable names Learning step by step and building consistency 💪🔥 #DevOps #Linux #ShellScripting #AWS #LearningJourney

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories