Learning Bash Scripting Basics and Shell Fundamentals

spent some time learning bash scripting today started with basics what is shebang and why it’s used. understood what shell actually is and bash, zsh, ksh are just different shells. then tried basic things like - taking input, printing output variables if else, loops also learned how to run scripts directly with ‘./‘ and using interpreters like ‘sh’. tested some scripts by passing arguments into them. looked at some built-in variables like $HOME, $USER, $SHELL executed the scripts in debugging mode and checked what happens when a script fails. pipes failing was something new for me cause the scripts checks the output of a last piped command, in between any failure happens then the script does not stop executing. #devops #linux

To view or add a comment, sign in

Explore content categories