Linux+ exam trap: test -z vs -n #Shorts



Check that a variable is empty in a Bash test. Is the letter n for null?
The tempting answer, why it is wrong, and why the right one is right. This topic is on the CompTIA Linux+ XK0-006 exam objectives.
Full Linux+ course:

#LinuxPlus #CompTIA #Linux #Shorts

source

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You might like

© 2026 Cantinho do Vídeo - WordPress Video Theme by WPEnjoy