Linux Terminal Glossary
›
Bash Scripting
if [[ -z $VAR ]]; then ... fi
Category:
Bash Scripting
if [[ -z $VAR ]]; then ... fi
Copy command
Check if a variable is empty (zero length)
Checks if a variable is empty (zero length). -z means 'zero length string'.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.