How to declare and use a boolean variable in Linux bash shell script?

The boolean data type is not directly supported in Linux bash shell. But you can use normal variables as boolean in the below ways –