How to check if an environment variable exists in Linux bash shell?

You can use test -z option to check if an environment variable exists in Linux bash shell.

Leave a Reply