I'm new to linux and trying to understand in what case we place $ before variables in shell, and when we don't.
myVar=5
echo $myVar # use $
myVar=$((myVar+1)) # why not myVar = ($myVar+1)
export myVar # don't use $ ?
unset myVar # don't use $ ?
It's seems kind of inconsistent. Do you know some general rule, where we place $ before the variable, and when we don't?