Search exams, classes and guides
Search...
English
Sign in
Sign in
Home
Practice
Discover
Performance
More
CompTIA Linux+ XK0-006
Automation, Orchestration, and Scripting
Card 17 of 113
17 / 113
Which test operator returns true if a string has zero length?
Front
Which test operator returns true if a string has zero length?
Back
The -z operator, as in [ -z "$var" ]. Its counterpart -n returns true when the string is non-empty, so always quote the variable to avoid syntax errors on empty values.
Show the back
Press the card to see the back
Study this deck