The first part of the series is about Shell variables. Below are some posts about shell variables
- Declaring variables
- Printing variables
- Local variables
- Global or environment variables
- Advanced declaring variables
- System defined variables
- Positional parameters or command line arguments
- Special system defined variables.
Some questions and answers about Variables
What are variables?
A variable is name given to a value such as number, character, string etc.
Why to declare a variable?
We declare variable for storing some value in it. So that shell scripts will not depend on change in values.
Where we will use variables?
Variables are used to substitute commands, substitute values with generic names, Substitute paths with just names etc.
Stay tuned to our posts on Variables.
Latest posts by Surendra Anne (see all)
- Docker: How to copy files to/from docker container - June 30, 2020
- Anisble: ERROR! unexpected parameter type in action:
Fix - June 29, 2020 - FREE: JOIN OUR DEVOPS TELEGRAM GROUPS - August 2, 2019
- Review: Whizlabs Practice Tests for AWS Certified Solutions Architect Professional (CSAP) - August 27, 2018
- How to use ohai/chef-shell to get node attributes - July 19, 2018