How colon and semicolon differs in linux command? -
how colon , semicolon differs in following linux commands?
i: i;
in case doesn't matter much.
usually, ;
used mark end of command in situations:
if [[ ... ]]; ...; else ...; fi
the who
command, however, produce same output regardless of 2 words on command line is. :
not special:
$ $ makes dinner $ ano.l::e se=el
these produce exact same output.
so, answer question:
- the
:
part of wordi:
, doesn't mean special here. - the semicolon marks end of command, , not needed since there no other command on line after it.
Comments
Post a Comment